[PATCH] Couple of fixes for when int is 16-bits
Jon Beniston
jon@beniston.com
Tue Nov 11 19:37:00 GMT 2014
Hi,
Attached is a patches to fix a couple of overflows when ints are 16-bits.
2014-11-11 Jon Beniston <jon@beniston.com>
* libc/stdlib/strtod.c (sulp): Cast to int32_t to avoid overflow.
* libc/time/gmtime_r.c (DAYS_PER_*_YEARS): Convert to long constants
to avoid overflow.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: int16.patch
Type: application/octet-stream
Size: 1636 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20141111/75505f80/attachment.obj>
More information about the Newlib
mailing list