cmd: Don't read past end of thisVar in WCMD_expand_envvar (valgrind) (try 2)

Dan Kegel dank at kegel.com
Wed May 25 23:53:14 CDT 2011


Fixes http://bugs.winehq.org/show_bug.cgi?id=26048
(old code called CompareStringW with wrong length)

Also moves repeated code into a helper function.

Change since first try: split test into separate patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-cmd-Don-t-read-past-end-of-thisVar-in-WCMD_expand_en.patch
Type: text/x-patch
Size: 5635 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110525/b1c5b127/attachment.bin>


More information about the wine-patches mailing list