OSDN Git Service

2002-08-09 Jason Tishler <jason@tishler.net>
authorjjohnstn <jjohnstn>
Fri, 9 Aug 2002 21:33:29 +0000 (21:33 +0000)
committerjjohnstn <jjohnstn>
Fri, 9 Aug 2002 21:33:29 +0000 (21:33 +0000)
commit1e6d6d5a7e30c1ef5fabc28eed1f49d52062c2de
tree7ebecb7d78384debb5bf79b344f5504576910277
parent4a4f027adca4c13d3c7148a01f5e2017f65b2161
2002-08-09  Jason Tishler  <jason@tishler.net>

        * libc/stdlib/mallocr.c: Include <limits.h>.
        (request2size): Change macro to do
        unsigned long comparisons and avoid signed overflow.
        (mALLOc): Add overflow check for the number of bytes to allocate.
        (rEALLOc): Ditto.
newlib/ChangeLog
newlib/libc/stdlib/mallocr.c