From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Microsoft Visual C++ ABI" |
|---|
| claim | "An MSVC RTTI TypeDescriptor (the std::type_info object, symbol ??_R0<type>@8) is {pointer to the type_info vftable ??_7type_info@@6B@; pointer-sized spare (0 in the file, runtime cache of the undecorated name); NUL-terminated decorated name '.?AV<class>@@' / '.?AU<struct>@@' / '.H' etc.}. It uses full pointers on every architecture, so on x64 the name starts at +0x10 and on x86 at +0x08. It lives in a writable section (.data)." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Microsoft Visual C++ ABI" |
|---|
| observed_in | | "MSVC 19.44 x86 and x64 test builds" |
| "Notepad++ x64" |
| "Windows 11 msvcp140.dll x86 and x64" |
|
|---|
|
|---|
| data | | name | "TypeDescriptor" |
|---|
| size_min | 17 |
|---|
| alignment | 8 |
|---|
| fields | | offset | "0x00" |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "pVFTable" |
|---|
| notes | "always ??_7type_info@@6B@ (x86: 4 bytes)" |
|---|
|
| offset | "0x08" |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "spare" |
|---|
| notes | "0 in the file (x86: at +4, 4 bytes)" |
|---|
|
| offset | "0x10" |
|---|
| size | 1 |
|---|
| type | "char[]" |
|---|
| name | "name" |
|---|
| notes | "decorated type name, starting with '.'; x86: at +8" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "rtti.TypeDescriptor = {i8**, i8*, [N x i8]}; initialised with ??_7type_info@@6B@, null, and the '.'-prefixed mangled type name" |
|---|
| repo | "https://github.com/llvm/llvm-project" |
|---|
| commit | "8cdfc2de74ce046bae08f3a423be85694f225f3b" |
|---|
| path | "clang/lib/CodeGen/MicrosoftCXXABI.cpp" |
|---|
| lines | "505-519, 3643-3651, 4037-4072" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "x64 build: ??_R0?AUDuck@zoo@@@8 at RVA 0x9FEF0 = 60 71 08 40 01 00 00 00 | 00*8 | '.?AUDuck@zoo@@'; 0x140087160 is ??_7type_info@@6B@ in the MAP file. x86: d8 ef 46 00 | 00 00 00 00 | name." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "TypeDescriptor" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T06:28:47.888Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:25:40.877Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read MicrosoftCXXABI.cpp at 8cdfc2de74ce getTypeDescriptorType (505-519): rtti.TypeDescriptor = {i8** vftable, i8* spare, [N+1 x i8] name} with full pointers (not image-relative). Matches." |
|---|
|
|
|---|