diff --git a/pwnlib/elf/corefile.py b/pwnlib/elf/corefile.py index 01985390a..7090b0405 100644 --- a/pwnlib/elf/corefile.py +++ b/pwnlib/elf/corefile.py @@ -236,7 +236,7 @@ def vsyscall(self): def libc(self): """Return the first mapping in libc""" for m in self.mappings: - if m.name.startswith('libc') and m.name.endswith('.so'): + if m.name and m.name.startswith('libc') and m.name.endswith('.so'): return m @property