From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:PDB (Program Database)" |
|---|
| claim | "Pre-VC 7.0 PDBs (PDB 2.00, small MSF with 16-bit page numbers, referenced by NB10 CodeView records) start with the 44-byte szHdrMagic "Microsoft C/C++ program database 2.00\r\n" 1A 4A 47 ("JG") 00 00 at offset 0." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PDB (Program Database)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "4D 69 63 72 6F 73 6F 66 74 20 43 2F 43 2B 2B 20 70 72 6F 67 72 61 6D 20 64 61 74 61 62 61 73 65 20 32 2E 30 30 0D 0A 1A 4A 47" |
|---|
| offset | "0x0" |
|---|
| meaning | "PDB 2.00 (small MSF) header of a VC2-VC6 era PDB" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MSF_HDR: char szMagic[0x2C]; szHdrMagic = "Microsoft C/C++ program database 2.00\r\n\x1a\x4a\x47"" |
|---|
| repo | "https://github.com/microsoft/microsoft-pdb" |
|---|
| commit | "805655a28bd8198004be2ac27e6e0290121a5e89" |
|---|
| path | "PDB/msf/msf.cpp" |
|---|
| lines | "934-961" |
|---|
|
| type | "source" |
|---|
| detail | "static const char szHdrMagic[0x2c] = "Microsoft C/C++ program database 2.00\r\n\x1a\x4a\x47"; (also szBigHdrMagic[0x1e] = "Microsoft C/C++ MSF 7.00\r\n\x1a\x44\x53"); MSF open: memcmp(szMagic, szHdrMagic, sizeof szHdrMagic) == 0 -> fBigMsf = false." |
|---|
| repo | "https://github.com/microsoft/microsoft-pdb" |
|---|
| commit | "805655a28bd8198004be2ac27e6e0290121a5e89" |
|---|
| path | "PDB/msf/msf.cpp" |
|---|
| lines | "961-962, 1273-1276" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "PDB 2.00 small MSF magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T21:15:15.619Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:42:53.563Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read msf.cpp at 805655a: szHdrMagic[0x2c] = 'Microsoft C/C++ program database 2.00\r\n\x1a\x4a\x47' (42 chars + 2 NUL = 44); fValidHdr memcmp's sizeof szHdrMagic and sets fBigMsf=false. The data field lists the 42 text bytes, the two NULs follow." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T22:34:37.862Z" |
|---|
| summary | "Raise to high: msf.cpp at the cited commit declares szHdrMagic[0x2c] = "Microsoft C/C++ program database 2.00\r\n\x1a\x4a\x47" (42 chars + 2 NUL pad) and the MSF open code memcmp's it to pick the…" |
|---|
| changed | |
|---|
|
|
|---|