]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Check for integer overflow in pvalloc.
authorWill Newton <will.newton@linaro.org>
Mon, 12 Aug 2013 14:08:02 +0000 (15:08 +0100)
committerAllan McRae <allan@archlinux.org>
Fri, 25 Oct 2013 13:53:17 +0000 (23:53 +1000)
commit63e9a36056fe53621fa3001fe22b4833a9ea9457
tree8855abbfa7b15d8d0161c90b57563e30137e9bd0
parenta3ed3a127ca30b3b25aab0b441f9f3f0ecc07f7e
malloc: Check for integer overflow in pvalloc.

A large bytes parameter to pvalloc 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 #15855]
* malloc/malloc.c (__libc_pvalloc): Check the value of bytes
does not overflow.

(cherry picked from commit 1159a193696ad48ec86e5895f6dee3e539619c0e)
ChangeLog
malloc/malloc.c