]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix 383275 - massif valgrind: m_xarray.c:162 (ensureSpaceXA): Assertion '!xa->arr...
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 8 Aug 2017 19:52:03 +0000 (19:52 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 8 Aug 2017 19:52:03 +0000 (19:52 +0000)
commit7d84a435a84fc195392054acec075c2caf000fe2
tree45bcea836f39c1726a5fa93e6f1a960bd76b90b0
parent8b872cb2014060b217b919449a7401cbf0122361
Fix 383275 - massif valgrind: m_xarray.c:162 (ensureSpaceXA): Assertion '!xa->arr' failed

When a massif xtree snapshot is taken when no allocation was done,
the xtree contains no exe context.
The data structure ips_order_xecu is then szied to 0 using VG_(hintSizeXA).
m_xarray.c then allocates an empty array, while later on, a zero size
is expected to correspond to no allocated array.

Fix the problem in m_xarray.c, by not doing any allocation if the
size hint is 0.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16469
NEWS
coregrind/m_xarray.c