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

Fix parsing corefile with missing auxv #2559

Merged
merged 2 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,17 @@ The table below shows which release corresponds to each branch, and what date th
[2476]: https://github.com/Gallopsled/pwntools/pull/2476
[2364]: https://github.com/Gallopsled/pwntools/pull/2364

## 4.14.1
## 4.14.1 (`stable`)

- [#2533][2533] Fix installation on Python 3.5 and lower
- [#2518][2518] fix: update apport coredump path handling for CorefileFinder
- [#2559][2559] Fix parsing corefile with missing auxv

[2533]: https://github.com/Gallopsled/pwntools/pull/2533
[2518]: https://github.com/Gallopsled/pwntools/pull/2518
[2559]: https://github.com/Gallopsled/pwntools/pull/2559

## 4.14.0 (`stable`)
## 4.14.0

- [#2356][2356] Add local libc database provider for libcdb
- [#2360][2360] Add offline parameter for `search_by_hash` series function
Expand Down
5 changes: 5 additions & 0 deletions pwnlib/elf/corefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,9 @@ def __init__(self, *a, **kw):
# Pointer to the entry point
self.at_entry = 0

# Pointer to the vdso
self.at_sysinfo_ehdr = None

try:
super(Corefile, self).__init__(*a, **kw)
except IOError:
Expand Down Expand Up @@ -611,6 +614,8 @@ def __init__(self, *a, **kw):

if not self.stack and self.mappings:
self.stack = self.mappings[-1].stop
if self.mappings[-1].start == 0xffffffffff600000 and len(self.mappings) > 1:
self.stack = self.mappings[-2].stop

if self.stack and self.mappings:
for mapping in self.mappings:
Expand Down
Loading