ref: 5614090725658439e7b4260c50a031c7355bab2a
parent: c5f1bc4b36108c0b7e0235031f929ab18cf1b164
author: Werner Lemberg <[email protected]>
date: Wed Oct 26 04:10:59 EDT 2016
* src/type1/t1load.c (parse_subrs): Fix limit check. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=81
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-10-26 Werner Lemberg <[email protected]>
+
+ * src/type1/t1load.c (parse_subrs): Fix limit check.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=81
+
2016-10-25 Alexei Podtelezhnikov <[email protected]>
[cff] Correct cmap format reporting (#24819).
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -1433,7 +1433,7 @@
}
/* we certainly need more than 8 bytes per subroutine */
- if ( parser->root.limit > parser->root.cursor &&
+ if ( parser->root.limit >= parser->root.cursor &&
num_subrs > ( parser->root.limit - parser->root.cursor ) >> 3 )
{
/*