From f2d438b574d40b387270a342cc152d02273242f6 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 7 Nov 2014 10:35:12 -0800 Subject: [PATCH] Refine dump_fonts(). --- dump.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dump.c b/dump.c index 51f97dc21a..b21de36fea 100644 --- a/dump.c +++ b/dump.c @@ -585,10 +585,11 @@ dump_fonts(void) if (!match_u32(0)) match_u32_assert(1); match_byte_assert(0); - pos++; - pos++; - match_byte_assert(0); - match_byte_assert(0); + + /* OK, this seems really unlikely to be totally correct, but it matches my corpus... */ + if (!match_u32(0) && !match_u32(2)) + match_u32_assert(0xfaad); + if (!match_u32(0) && !match_u32(1) && !match_u32(2)) match_u32_assert(3); printf ("%s, ", get_string()); -- 2.30.2