From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Tool:Decomp-toolkit" |
|---|
| claim | "A decomp-toolkit symbols.txt line is 'name = section:address; // attrs' (hex address, 0x optional) with space-separated attributes: type:function|object|label|section, size:0x.., scope:global|local|weak|common, align:N, data:<kind>, hash:, dhash:, and flags hidden, force_active, stripped, noreloc, noexport. The regex marks the section prefix and the comment as optional, but the code then indexes those capture groups directly, so a line without 'section:' or without '// attrs' is not usable in this version (use ABS for absolute addresses). Lines starting with // or # are comments; unknown attributes are an error." |
|---|
| scope | | level | "tool" |
|---|
| applies_to | "Tool:decomp-toolkit" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "file syntax" |
|---|
| indicator | "symbols.txt line grammar" |
|---|
| table | "name = section:0xADDR; // type:function size:0x30 scope:global align:4 (section ABS means absolute; names starting with .. are exported)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "parse_symbol_line: SYMBOL_LINE regex, captures["section"] and captures["attrs"] indexed without a check, symbol_kind_from_str, symbol_flags_from_str (common/weak/global/local), attribute match arms" |
|---|
| repo | "https://github.com/encounter/decomp-toolkit" |
|---|
| commit | "0645e16511814920ffb05b25615dd71f1af73e4c" |
|---|
| path | "src/util/config.rs" |
|---|
| lines | "70-195, 375-407" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T04:50:43.942Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T03:50:01.304Z" |
|---|
| result | "confirmed" |
|---|
| method | "Re-checked the correction at the cited commit: config.rs SYMBOL_LINE regex has optional (?:section:) and optional attrs group, but parse_symbol_line indexes captures["section"] (line 82) and captures["attrs"] (line 119) directly, so absence panics." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T02:46:53.996Z" |
|---|
| summary | "parse_symbol_line indexes captures["section"] and captures["attrs"], which panic when absent: the section prefix and the // attrs part are required in practice; scope also accepts common" |
|---|
| changed | | "claim" |
| "evidence replaced" |
|
|---|
|
|
|---|