* dcrt0.cc (__argc_safe): New variable.
(dll_crt0_1): Store argc in __argc_safe, which will theoretically remain untouched by the user. * fhandler_console.cc (fhandler_console::read): Silence some compiler warnings. * fhandler_raw.cc (fhandler_dev_raw::raw_read): Ditto. * pinfo.cc (_pinfo::commune_recv): Carefully bound argv scan and check for potentially bad pointers since user could have set argv cell to anythinw. * cygheap.h (CYGHEAPSIZE): Bump up size.
This commit is contained in:
@ -333,7 +333,7 @@ fhandler_dev_raw::raw_read (void *ptr, size_t& ulen)
|
||||
return;
|
||||
|
||||
err:
|
||||
(ssize_t) ulen = -1;
|
||||
ulen = (size_t) -1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user