]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix a bug in the "numbering" dedup pool: as indicated in
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 4 Jul 2014 20:40:02 +0000 (20:40 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 4 Jul 2014 20:40:02 +0000 (20:40 +0000)
commitcae97b0c6673775d3522f38e04b6f4767d886c2b
tree4c320ce4cefe63355afc099590138421d3dad1a8
parent9ab8999e43758806a13d6e1316ab1c027fcae531
Fix a bug in the "numbering" dedup pool: as indicated in
pub_tool_deduppoolalloc.h, for "numbering" pool, there is no guarantee
that the address of an element is stable if a new element is inserted.
But m_deduppoolalloc.c was itself not taking this 'no guarantee' into account.
So, when the addresses of the elements are changed due to reallocation
of the only pool, apply an offset to the element addresses stored in
the dedup hash table.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14127
coregrind/m_deduppoolalloc.c