Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: src/gdef.cc

Issue 139353002: Fix offset verification in GDEF and GSUB header parsing. (Closed) Base URL: https://chromium.googlesource.com/external/ots.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gsub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gdef.cc
diff --git a/src/gdef.cc b/src/gdef.cc
index 8d26a41be9d96e7ccfd2fc3487ff1f02ef1664bd..f7de0f0d28116d4d57b54a260ba1abf8f9c43792 100644
--- a/src/gdef.cc
+++ b/src/gdef.cc
@@ -290,7 +290,7 @@ bool ots_gdef_parse(OpenTypeFile *file, const uint8_t *data, size_t length) {
}
}
- unsigned gdef_header_end = 8;
+ unsigned gdef_header_end = 4 + 4 * 2;
if (gdef->version_2)
gdef_header_end += 2;
« no previous file with comments | « no previous file | src/gsub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698