gprofng: fix SIGSEGV when processing unusual dwarf
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Tue, 7 Feb 2023 22:58:25 +0000 (14:58 -0800)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Wed, 8 Feb 2023 05:26:21 +0000 (21:26 -0800)
commite02841b095a7797aaae1b064fb4b7acc2eb8d900
treeb3c1d93dd5d448613008f0db1730cf0a4e5d985b
parent4170bc7ea846a14485e4729f1e2d707a04035c6f
gprofng: fix SIGSEGV when processing unusual dwarf

gprofng/ChangeLog
2023-02-07  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

PR gprofng/30093
* src/Dwarf.cc: add nullptr check.
* src/DwarfLib.cc: Likewise.
gprofng/src/Dwarf.cc
gprofng/src/DwarfLib.cc