diff options
author | Corinna Vinschen <vinschen@redhat.com> | 2020-11-17 12:50:57 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-11-17 12:52:34 +0300 |
commit | aa106b29a6a8a1b0df9e334704292cbc32f2d44e (patch) | |
tree | e916aa9f4981dee2ed690ae40ee86091d7abb10e /newlib/libc/machine/m32r/configure | |
parent | 14a1e7ce4288b8d3fde1359c73cb8805bcdf78a6 (diff) |
malloc/nano-malloc: correctly check for out-of-bounds allocation reqs
The overflow check in mEMALIGn erroneously checks for INT_MAX,
albeit the input parameter is size_t. Fix this to check for
__SIZE_MAX__ instead. Also, it misses to check the req against
adding the alignment before calling mALLOc.
While at it, add out-of-bounds checks to pvALLOc, nano_memalign,
nano_valloc, and Cygwin's (unused) dlpvalloc.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/machine/m32r/configure')
0 files changed, 0 insertions, 0 deletions