Fix Dwarf range list parsing in stack symbolizer

This commit is contained in:
Michael Kolupaev 2024-07-29 23:10:13 +00:00
parent 7b2ec7ea33
commit 4eb2bf3419

View File

@ -1559,8 +1559,7 @@ bool Dwarf::isAddrInRangeList(const CompilationUnit & cu,
auto sp_start = addr_.substr(*cu.addr_base + index_start * sizeof(uint64_t));
auto start = read<uint64_t>(sp_start);
auto sp_end = addr_.substr(*cu.addr_base + index_start * sizeof(uint64_t) + length);
auto end = read<uint64_t>(sp_end);
auto end = start + length;
if (start != end && address >= start && address < end)
{
return true;