]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: Check for integer overflow in memalign.
authorWill Newton <will.newton@linaro.org>
Fri, 16 Aug 2013 11:54:29 +0000 (12:54 +0100)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 16 Jan 2015 11:14:54 +0000 (06:14 -0500)
A large bytes parameter to memalign 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 #15857]
* malloc/malloc.c (__libc_memalign): Check the value of bytes
does not overflow.

ChangeLog

index 2c9dc89a5b86b82adf544eb603b40572a676ff51..14760a24ee26daea98c89c162194ee4339a98a28 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 #15857]
+       * malloc/malloc.c (__libc_memalign): Check the value of bytes
+       does not overflow.
+
 2013-09-11  Will Newton  <will.newton@linaro.org>
 
        [BZ #15856]