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

Unified Diff: third_party/ots/src/cff.cc

Issue 1487543005: Update OTS to revision 99a3b7f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « third_party/ots/ots-common.gypi ('k') | third_party/ots/src/cff_type2_charstring.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ots/src/cff.cc
diff --git a/third_party/ots/src/cff.cc b/third_party/ots/src/cff.cc
index f72cbecb73fc58d5a24375c812b6573f7bbee15b..23b6dadac273d41741d6d74d0be964df3afc6d69 100644
--- a/third_party/ots/src/cff.cc
+++ b/third_party/ots/src/cff.cc
@@ -375,11 +375,17 @@ bool ParsePrivateDictData(
operands.pop_back();
switch (op) {
- // array
+ // hints
case 6: // BlueValues
case 7: // OtherBlues
case 8: // FamilyBlues
case 9: // FamilyOtherBlues
+ if (operands.empty() || (operands.size() % 2) != 0) {
+ return OTS_FAILURE();
+ }
+ break;
+
+ // array
case (12U << 8) + 12: // StemSnapH (delta)
case (12U << 8) + 13: // StemSnapV (delta)
if (operands.empty()) {
« no previous file with comments | « third_party/ots/ots-common.gypi ('k') | third_party/ots/src/cff_type2_charstring.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698