From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:PDB (Program Database)" |
|---|
| claim | "Every current Microsoft PDB (MSF 7.00, big MSF) starts with the 30-byte szBigHdrMagic string "Microsoft C/C++ MSF 7.00\r\n" 1A 44 53 plus its NUL; msf.cpp memcmp's exactly these 30 bytes. Two more zero padding bytes (offsets 30-31) precede the uint32 page size at 0x20 but are not part of the compared magic." |
|---|
| 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 4D 53 46 20 37 2E 30 30 0D 0A 1A 44 53 00" |
|---|
| offset | "0x0" |
|---|
| meaning | "MSF 7.00 (big MSF) superblock szBigHdrMagic[0x1e] of a native PDB; offsets 30-31 are zero padding, page size follows at 0x20" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "BIGMSF_HDR: char szMagic[0x1e] followed by CB cbPg; szBigHdrMagic = "Microsoft C/C++ MSF 7.00\r\n\x1a\x44\x53"" |
|---|
| repo | "https://github.com/microsoft/microsoft-pdb" |
|---|
| commit | "805655a28bd8198004be2ac27e6e0290121a5e89" |
|---|
| path | "PDB/msf/msf.cpp" |
|---|
| lines | "947-962" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "pdbinfo.py: the 32 bytes matched in 58 of 58 native PDBs (MSVC toolsets 14.00-14.51, x86 and x64)." |
|---|
|
| type | "source" |
|---|
| detail | "szBigHdrMagic[0x1e] = "Microsoft C/C++ MSF 7.00\r\n\x1a\x44\x53" and memcmp(BigMsfHdr().szMagic, szBigHdrMagic, sizeof szBigHdrMagic) in the open path" |
|---|
| repo | "https://github.com/microsoft/microsoft-pdb" |
|---|
| commit | "805655a28bd8198004be2ac27e6e0290121a5e89" |
|---|
| path | "PDB/msf/msf.cpp" |
|---|
| lines | "948-962, 1273-1277" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "MSF 7.00 superblock magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T21:15:15.544Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:42:53.489Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read msf.cpp at 805655a: BIGMSF_HDR szMagic[0x1e] then cbPg; szBigHdrMagic[0x1e] = 'Microsoft C/C++ MSF 7.00\r\n\x1a\x44\x53' (24+2+3 chars + NUL = 30); fValidHdr memcmp's sizeof szBigHdrMagic." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T11:32:58.508Z" |
|---|
| summary | "The MSF code compares only the 30 bytes of szBigHdrMagic; bytes 30-31 are alignment padding before cbPg" |
|---|
| changed | | "claim" |
| "data" |
| "evidence" |
|
|---|
|
|
|---|