dump: Fix dumping of entire contents for all v3.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 28 Jul 2015 02:52:06 +0000 (19:52 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 28 Jul 2015 02:52:06 +0000 (19:52 -0700)
dump.c

diff --git a/dump.c b/dump.c
index 697ace697badba8c220db73de40d6c0b38bd7c35..0b7e82452bea17d46d03dda55335c0e3d3c595f9 100644 (file)
--- 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