getSection returns nullptr for some section types:
if (symb->st_shndx >= ELF::SHN_LORESERVE) return nullptr;
but getSymbolAddress was dereferencing this without checking.
Differential D7704
Fix crash in llvm-objdump with proc-specific sections colinl on Feb 17 2015, 2:33 PM. Authored by
Details
getSection returns nullptr for some section types: if (symb->st_shndx >= ELF::SHN_LORESERVE) return nullptr; but getSymbolAddress was dereferencing this without checking.
Diff Detail
Event TimelineComment Actions That seems like a possibility. I've never written one before so I'll have to figure out how. As long as they can generate process-specific elf sections it should be possible. Comment Actions Checking in binaries is fine.
|
Style: Don't use auto in here.