[PATCH] Couple of fixes for when int is 16-bits

Corinna Vinschen vinschen@redhat.com
Wed Nov 12 09:10:00 GMT 2014

On Nov 11 19:37, Jon Beniston wrote:
> Hi,
> Attached is a patches to fix a couple of overflows when ints are 16-bits.
> 2014-11-11  Jon Beniston  <...>
> 	* 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.

Patch applied.


Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20141112/3d4071a4/attachment.sig>

More information about the Newlib mailing list