Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't skip over symbol at start of file in _populate_symbols #2451

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pwnlib/elf/elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,10 +908,9 @@ def _populate_symbols(self):
continue

for symbol in _iter_symbols(section):
value = symbol.entry.st_value
if not value:
if not symbol.name:
continue
self.symbols[symbol.name] = value
self.symbols[symbol.name] = symbol.entry.st_value

def _populate_synthetic_symbols(self):
"""Adds symbols from the GOT and PLT to the symbols dictionary.
Expand Down
Loading