]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix a problem I introduced in r4208 when reducing the space used by
authorNicholas Nethercote <njn@valgrind.org>
Wed, 24 Aug 2005 22:38:00 +0000 (22:38 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 24 Aug 2005 22:38:00 +0000 (22:38 +0000)
commit281297db9f4544c48a811442fce691dc91ca11a3
tree6c841c244d0aec5bf851053dfaa4e7b1c50878ce
parente715ae93fa747932c14a04ae845e30972b809026
Fix a problem I introduced in r4208 when reducing the space used by
heap blocks.  The minimum size for redzones is now sizeof(void*), but
I forgot to ensure this.  Massif was asking for 0 byte redzones, and this
was screwing things up on 64-bit platforms, and Massif was dying very
quickly.  This should fix bugs #111090 and #111285.

The fact that Massif was this badly broken but there were only 2 bug reports
indicates that not many people are using it, at least not on AMD64.

I also added a regtest that does some basic malloc/realloc/free testing
for Massif, which would have caught this problem.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4492
coregrind/m_mallocfree.c
massif/tests/Makefile.am
massif/tests/basic_malloc.c [new file with mode: 0644]
massif/tests/basic_malloc.stderr.exp [new file with mode: 0644]
massif/tests/basic_malloc.vgtest [new file with mode: 0644]