From 15d219ad6f0605a49d545134699bbef55cff260e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 27 Jul 2015 19:52:06 -0700 Subject: [PATCH] dump: Fix dumping of entire contents for all v3. --- dump.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dump.c b/dump.c index 697ace697b..0b7e82452b 100644 --- a/dump.c +++ b/dump.c @@ -330,10 +330,11 @@ dump_value_31(FILE *stream) else if (match_u32 (2)) { fprintf(stream, "(special 2)"); + if (!match_byte(0)) + match_byte_assert(2); match_byte_assert(0); - match_byte_assert(0); - if (!match_u32 (2)) - match_u32_assert(1); + if (!match_u32 (2) && !match_u32(1)) + match_u32_assert(3); dump_nested_string(); /* Our corpus doesn't contain any examples with strings though. */ } else -- 2.30.2