From: Will Newton Date: Fri, 16 Aug 2013 11:54:29 +0000 (+0100) Subject: malloc: Check for integer overflow in memalign. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c77803abebe02a99a5329e28627e1ad6d074cfe;p=thirdparty%2Fglibc.git malloc: Check for integer overflow in memalign. 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 [BZ #15857] * malloc/malloc.c (__libc_memalign): Check the value of bytes does not overflow. --- diff --git a/ChangeLog b/ChangeLog index 2c9dc89a5b8..14760a24ee2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -335,6 +335,12 @@ * malloc/malloc.c (__libc_valloc): Check the value of bytes does not overflow. +2013-09-11 Will Newton + + [BZ #15857] + * malloc/malloc.c (__libc_memalign): Check the value of bytes + does not overflow. + 2013-09-11 Will Newton [BZ #15856]