Closed berolinux closed 3 weeks ago
symbol['st_shndx'] can take a value of 'SHN_UNDEF' -- causing a crash in readelf.py when dumping the symbol table since that non-numeric value can't be compared to self.elffile.num_sections().
Add a check before assuming st_shndx is numeric.
I'd do a plain comparison to the string literal 'SHN_UNDEF'. But no pressure :)
@eliben this was addressed by #574
symbol['st_shndx'] can take a value of 'SHN_UNDEF' -- causing a crash in readelf.py when dumping the symbol table since that non-numeric value can't be compared to self.elffile.num_sections().
Add a check before assuming st_shndx is numeric.