From ea7abc60a05144a4b0d22fc12f3fc508a98ad46e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 26 Jul 2015 22:41:52 -0700 Subject: [PATCH] dump: Allow 1 in place of 3 at offset 0x2 in SPV file. This fixes "dump all" up to an including dump_title() in the whole expanded corpus. --- dump.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dump.c b/dump.c index f9c315e580..2ac89bcab7 100644 --- a/dump.c +++ b/dump.c @@ -878,7 +878,13 @@ main(int argc, char *argv[]) pos = 0; match_byte_assert(1); match_byte_assert(0); - match_u32_assert(3); + + /* This might be a version number of some kind, because it seems to + only appear in an SPV file that also required its own weird + special cases in dump_value_31(). */ + if (!match_u32(1)) + match_u32_assert(3); + match_byte_assert(1); if (!match_byte(0)) match_byte_assert(1); -- 2.30.2