Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <vinschen@redhat.com>2020-11-17 12:50:57 +0300
committerCorinna Vinschen <corinna@vinschen.de>2020-11-17 12:52:34 +0300
commitaa106b29a6a8a1b0df9e334704292cbc32f2d44e (patch)
treee916aa9f4981dee2ed690ae40ee86091d7abb10e /newlib/libc/machine/lm32/configure
parent14a1e7ce4288b8d3fde1359c73cb8805bcdf78a6 (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/lm32/configure')
0 files changed, 0 insertions, 0 deletions