Fixed 3 buffer overflows when fetching env. vars in wcmdmain.c
Alexander.Farber at nokia.com
Alexander.Farber at nokia.com
Wed Feb 28 10:54:02 CST 2007
Hello,
I've tried to fix these 2 issues in programs/cmd/wcmdmain.c:
1) The return value of GetEnvironmentVariable() is DWORD
and not BOOL or int
2) There are 3 checks like status > sizeof(...)
I think that status >= sizeof(...) should be used instead
Changelog:
cmd: Fixed 3 buffer overflows
Regards
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fixed-3-buffer-overflows-when-fetching-env.-vars-in-wcmdmain.c.patch
Type: application/octet-stream
Size: 2326 bytes
Desc: 0002-Fixed-3-buffer-overflows-when-fetching-env.-vars-in-wcmdmain.c.patch
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070228/e8762e82/0002-Fixed-3-buffer-overflows-when-fetching-env.-vars-in-wcmdmain.c.obj
More information about the wine-patches
mailing list