From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:DWARF" |
|---|
| claim | "A .debug_abbrev table is a series of declarations: ULEB128 abbreviation code (0 ends the table), ULEB128 tag (never 0), one byte children flag (DW_CHILDREN_yes 1, no 0), then ULEB128 attribute and form pairs ended by a 0,0 pair; a pair with exactly one zero is malformed. Form DW_FORM_implicit_const (0x21, DWARF 5) is followed in the abbreviation itself by an SLEB128 value, so DIEs spend no bytes on that attribute." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "DWARF .debug_abbrev" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "parsing .debug_abbrev at the unit's debug_abbrev_offset" |
|---|
| effect | "code, tag, children byte, (attr, form[, sleb implicit value])*, 0, 0" |
|---|
| condition | "DIE abbreviation codes in .debug_info index into the table of their unit" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "DWARFAbbreviationDeclaration::extract: getULEB128 code, tag, getU8 children byte, loop of ULEB attribute/form, 0/0 terminator, error when only one is zero, SLEB128 read for DW_FORM_implicit_const." |
|---|
| repo | "https://github.com/llvm/llvm-project" |
|---|
| commit | "059577967e64f14231b35bcd57f2b88c29909afc" |
|---|
| path | "llvm/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp" |
|---|
| lines | "38-98" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Abbreviation declaration encoding" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:16:59.549Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:52:29.415Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read DWARFAbbreviationDeclaration::extract in llvm at 05957796 (35-110): code 0 ends, non-null tag, children byte, attr/form pairs, one-zero pair is an error, implicit_const reads an SLEB128." |
|---|
|
|
|---|