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 non-standard parsing of DWARF 5 Type Unit Headers (7.5.3) #356

Open
wants to merge 1 commit into
base: main
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
2 changes: 1 addition & 1 deletion src/dwarf/debug_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ void CU::ReadHeader(string_view entire_unit, string_view data,
switch (unit_type_) {
case DW_UT_skeleton:
case DW_UT_split_compile:
case DW_UT_split_type:
dwo_id_ = ReadFixed<uint64_t>(&data);
break;
case DW_UT_split_type:
case DW_UT_type:
unit_type_signature_ = ReadFixed<uint64_t>(&data);
unit_type_offset_ = unit_sizes_.ReadDWARFOffset(&data);
Expand Down