Skip to content

Conversation

@EricRahm
Copy link
Collaborator

@EricRahm EricRahm commented Nov 21, 2025

When ReadCode returns nullptr (e.g. due to a short DWARF compilation unit), abbrev becomes null. Passing this null pointer to ReadAttributes caused a segmentation fault. This patch adds a check to return early if abbrev is null.

Fixes: #403
Fixes: #401
Fixes: #398

When `ReadCode` returns nullptr (e.g. due to a short DWARF compilation
unit), `abbrev` becomes null. Passing this null pointer to
`ReadAttributes` caused a segmentation fault. This patch adds a check
to return early if `abbrev` is null.

Fixes: google#401
Fixes: google#398
Adds a regression test that checks that missing DIEs are handled
gracefully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant