projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f792c1
)
Refine dump_fonts().
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 7 Nov 2014 18:35:12 +0000
(10:35 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 7 Nov 2014 18:35:12 +0000
(10:35 -0800)
dump.c
patch
|
blob
|
history
diff --git
a/dump.c
b/dump.c
index 51f97dc21a4bbbd06db98faef54e41d0bf0e5dbe..b21de36fea8643197e81b04db1aaf878fe4e3784 100644
(file)
--- 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());