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

Unified Diff: src/gsub.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 | « src/gdef.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gsub.cc
diff --git a/src/gsub.cc b/src/gsub.cc
index 02a5b5c75f4be17b08a568da6226f933f4401f23..c42e2f8c1c02e4b491bc29d0373a42f982cfa45e 100644
--- a/src/gsub.cc
+++ b/src/gsub.cc
@@ -18,7 +18,7 @@
namespace {
// The GSUB header size
-const size_t kGsubHeaderSize = 8;
+const size_t kGsubHeaderSize = 4 + 3 * 2;
enum GSUB_TYPE {
GSUB_TYPE_SINGLE = 1,
« no previous file with comments | « src/gdef.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698