Fixed 3 buffer overflows when fetching env. vars in wcmdmain.c

Alexander.Farber at Alexander.Farber at
Wed Feb 28 10:54:02 CST 2007


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

	cmd: Fixed 3 buffer overflows


-------------- 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 :

More information about the wine-patches mailing list