[Bug 28258] cmd/batch.ok fails under WINEDEBUG=warn+heap

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Sep 4 17:40:15 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=28258

Jason Edmeades <us at edmeades.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |us at edmeades.me.uk

--- Comment #2 from Jason Edmeades <us at edmeades.me.uk> 2012-09-04 17:40:15 CDT ---
A fun one :-)

The key here is the line "cd .. & rd /s/q foobar"

cd is passed ".. " as the command line and it copies it into a buffer,
character by character. It then loops stripping off trailing whitespace,
checking we havent walked over the front of the buffer. However the variable
which is the front of the buffer is wrong... Without heap+warn, lower in memory
so passes, but with heap_warn it isnt, and we fail to remove the space, ending
up looking for ".. " as the actual directory name, which FindFirstFile fails to
find.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list