]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Do not destroy the strpool if NULL
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 14 Jun 2014 19:09:22 +0000 (19:09 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 14 Jun 2014 19:09:22 +0000 (19:09 +0000)
commit266ab63f8b542aea273a9e77335ef1f644d6fef7
treef6a251da2b6e355144a4203e67ad4ff196557fd0
parentcc3cafc37a18bf140a6cc7268d821dd51fe0d148
Do not destroy the strpool if NULL
It is possible that a debug info contains no string (and so strpool
is never allocated).
A protection to avoid accessing strpool was already necessary
in ML_(canonicaliseTables) :
   if (di->strpool)
      VG_(freezeDedupPA) (di->strpool);

So, if a similar debug info is released, we need the same protection
to avoid accessing a NULL strpool.

Detect by Julian on arm64, but not (at least easily) reproduced on amd64.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14033
coregrind/m_debuginfo/debuginfo.c