]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix mempool2 test
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 13 May 2017 10:19:16 +0000 (10:19 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 13 May 2017 10:19:16 +0000 (10:19 +0000)
commit7d1c3b23a66161a9f5e90febc42b8e0cf67512a4
tree0863807e9af240cbe0a5a585e4d7f04c56d92f13
parent3ac5c1b50abbd69032edc3375163d47509445f88
Fix mempool2 test
mempool2 test was using a wrong address for the pool arguments
in the client requests VALGRIND_MEMPOOL_FREE.
So, instead of testing what it was supposed to test (e.g. reading
memory from a freed mempool block), this was all causing
an illegal memory pool address.
So, fix the calls, and add a specific test to verify the illegal
mempool address.

(detected while looking at bug 375415)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16369
memcheck/tests/mempool2.c
memcheck/tests/mempool2.stderr.exp