From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Microsoft Visual C++ ABI" |
|---|
| claim | "An MSVC FH3 try-block map entry is 20 bytes {int32 tryLow, tryHigh, catchHigh, nCatches; ref pHandlerArray} on x86 and x64 (VA on x86, RVA on x64), and an unwind map entry is 8 bytes {int32 toState; ref action}, action being the cleanup funclet or 0." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Microsoft Visual C++ ABI" |
|---|
| observed_in | | "MSVC 19.44 x86 and x64 /d2FH4- builds" |
|
|---|
|
|---|
| data | | name | "TryBlockMapEntry" |
|---|
| size | 20 |
|---|
| alignment | 4 |
|---|
| fields | | offset | "0x00" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "tryLow" |
|---|
|
| offset | "0x04" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "tryHigh" |
|---|
|
| offset | "0x08" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "catchHigh" |
|---|
|
| offset | "0x0C" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "nCatches" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "pHandlerArray" |
|---|
| notes | "HandlerType[nCatches]; RVA on x64, VA on x86" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "UnwindMapEntry {ToState, Action}; TryBlockMap {TryLow, TryHigh, CatchHigh, NumCatches, HandlerArray}" |
|---|
| repo | "https://github.com/llvm/llvm-project" |
|---|
| commit | "8cdfc2de74ce046bae08f3a423be85694f225f3b" |
|---|
| path | "llvm/lib/CodeGen/AsmPrinter/WinException.cpp" |
|---|
| lines | "772-830" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "x64 /d2FH4- $tryMap$main: {1,1,2,1,$handlerMap$0$main} {3,3,4,1,...}; x86 __tryblocktable$_main has the same values with VAs." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "TryBlockMapEntry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T06:28:48.786Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:25:41.090Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read WinException.cpp at 8cdfc2de74ce lines 772-830: UnwindMapEntry {ToState, Action} and TryBlockMap {TryLow, TryHigh, CatchHigh, NumCatches, HandlerArray} with 4-byte refs: 8 and 20 bytes. Matches." |
|---|
|
|
|---|