]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: Check for integer overflow in valloc.
authorWill Newton <will.newton@linaro.org>
Fri, 16 Aug 2013 10:59:37 +0000 (11:59 +0100)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 16 Jan 2015 11:14:26 +0000 (06:14 -0500)
A large bytes parameter to valloc could cause an integer overflow
and corrupt allocator internals. Check the overflow does not occur
before continuing with the allocation.

ChangeLog:

2013-09-11  Will Newton  <will.newton@linaro.org>

[BZ #15856]
* malloc/malloc.c (__libc_valloc): Check the value of bytes
does not overflow.

ChangeLog

index c448dda711a7fdeb884e585276dbda031b07b375..2c9dc89a5b86b82adf544eb603b40572a676ff51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        * malloc/malloc.c (__libc_valloc): Check the value of bytes
        does not overflow.
 
+2013-09-11  Will Newton  <will.newton@linaro.org>
+
+       [BZ #15856]
+       * malloc/malloc.c (__libc_valloc): Check the value of bytes
+       does not overflow.
+
 2013-09-11  Will Newton  <will.newton@linaro.org>
 
        [BZ #15855]