winsup/utils ChangeLog cygcheck.cc
cgf@sourceware.cygnus.com
cgf@sourceware.cygnus.com
Fri Dec 15 20:53:00 GMT 2000
CVSROOT: /cvs/uberbaum
Module name: winsup
Changes by: cgf@sources.redhat.com 2000-12-15 20:53:30
Modified files:
utils : ChangeLog cygcheck.cc
Log message:
* cygcheck.cc (cygwin_info): Add some more bounds checking. From Matt Harget
<matt@use.net>:
* utils/cygcheck.cc (keyeprint): Move declaration before other functions so it
could be used by all functions to report error messages. Add comment.
(add_path): Check for NULL return from malloc.
(find_on_path): Check initial uses of pointers for NULL.
(rva_to_offset): Ditto.
(init_paths): Add checking for return values of Win32 calls.
(get_dword): Ditto.
(get_word): Ditto.
(dll_info): Ditto, also add NULL pointer checks.
(scan_registry): Ditto.
(check_keys): Ditto.
(dump_sysinfo): Ditto. Add default case to switch. Add error reporting if
GetVolumeInformation fails, except when it returns ERROR_NOT_READY.
(track_down): Add checking for NULL pointers and return values of Win32 calls.
(cygwin_info): Ditto. Correct small memory leak.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/utils/ChangeLog.diff?cvsroot=uberbaum&r1=1.50&r2=1.51
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/utils/cygcheck.cc.diff?cvsroot=uberbaum&r1=1.6&r2=1.7
More information about the Cygwin-cvs
mailing list