From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:WIA and RVZ" |
|---|
| claim | "Dolphin's WIA/RVZ reader rejects a file unless: the magic matches the reader (WIA or RVZ), version_compatible is not above Dolphin's version and the file version is not below Dolphin's read-compatible limit, the SHA-1s of header 1, header 2 and the partition entries match, wia_file_size equals the real size, header_2_size is at least the fixed part and covers compressor_data_size (which must fit the 7-byte compressor_data field), chunk_size is acceptable, and compression_type is at most LZMA2 for WIA, at most Zstd for RVZ with Purge refused. chunk_size rule: WIA needs a multiple of 2 MiB; RVZ accepts either a power of two of at least 0x8000 or a multiple of 2 MiB. Further conditions later in Initialize: for a partition entry with two non-empty data entries the first must not start after the second; the raw-data table and group table must be readable (compressed with the file's method); and no data entry may overlap another or fail the lookup (HasDataOverlap)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "WIARVZFileReader::Initialize at this commit; limits WIA read-compatible 0x00080000, RVZ 0x00030000" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "opening a .wia or .rvz file" |
|---|
| effect | "reader creation fails (returns null) on any failed check; unsupported version and compression type are logged" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "magic, version, hash, size, chunk_size and compression_type checks in Initialize" |
|---|
| repo | "https://github.com/dolphin-emu/dolphin" |
|---|
| commit | "41460454e9600f909950fddf0abd13a138430162" |
|---|
| path | "Source/Core/DiscIO/WIABlob.cpp" |
|---|
| lines | "100-162" |
|---|
|
| type | "source" |
|---|
| detail | "version constants" |
|---|
| repo | "https://github.com/dolphin-emu/dolphin" |
|---|
| commit | "41460454e9600f909950fddf0abd13a138430162" |
|---|
| path | "Source/Core/DiscIO/WIABlob.h" |
|---|
| lines | "391-397" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Dolphin WIA RVZ header validation" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T11:41:49.239Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T16:44:26.474Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read WIARVZFileReader::Initialize and HasDataOverlap whole (WIABlob.cpp 90-290) plus version constants (WIABlob.h 385-397) at dolphin 41460454: every rejection in the fact is present and in that order; chunk_size rule is (!RVZ || <0x8000 || not power of two) && not multiple of 2 MiB. Note chunk_size 0 passes (0 is a multiple). Matches." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:27:02.310Z" |
|---|
| summary | "Wrong combination for RVZ chunk_size: WIABlob.cpp 148-153 rejects only if (not RVZ, or below 0x8000, or not a power of two) AND not a multiple of 2 MiB, so RVZ accepts a power of two >= 0x8000 OR a…" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T13:10:42.013Z" |
|---|
| summary | "Read WIARVZFileReader::Initialize to its end (WIABlob.cpp 90-270 at 4146045): the 'rejects unless' list stopped before several more rejection conditions. chunk_size, version, hash, size and…" |
|---|
| changed | |
|---|
|
|
|---|