summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/tests/malloc_hooks_tests.cpp
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2012-03-14 02:48:39 -0400
committerElliott Hughes <enh@google.com>2012-05-07 10:50:21 -0700
commit7f5aa4f35e23fd37425b3a5041737cdf58f87385 (patch)
tree297292e79911ba15c8b6e0faf1a9c0bc6710f0ba /libc/malloc_hooks/tests/malloc_hooks_tests.cpp
parent73a6566da337db50cfc73c369d774ac1905a30c2 (diff)
bionic: fix integer overflows in chk_malloc(), leak_malloc(), and leak_memalign()
The allocation size in chk_malloc(), leak_malloc(), and leak_memalign() functions may be rounded up to a small value, leading to buffer overflows. The code only runs in debugging mode. This patch complements commit 6f04a0f4 (CVE-2009-0607). Change-Id: Id899bcd2bcd2ea2205e5753c433390710032dc83 Signed-off-by: Xi Wang <xi.wang@gmail.com>
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions