Skip to content

Commit

Permalink
Readelf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
djphoenix committed Nov 19, 2016
1 parent ff5a91f commit e19ac56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/readelf/readelf.cpp
Expand Up @@ -162,6 +162,8 @@ size_t readelf(Process *process, Stream *stream) {
char *name = namesect ? stream->readstr() : 0;
// Skip unnamed symbols
if (name == 0 || name[0] == 0) continue;
// Skip symbols in undefined sections
if (sym->shndx > elf->shnum) continue;
// Find symbol section
ELF64SECT *symsect = sections + sym->shndx;
// Skip undefined symbols
Expand Down

0 comments on commit e19ac56

Please sign in to comment.