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

Unified Diff: core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/ttcmap.c

Issue 680833006: Undo an old change in freetype to account for size of USHORT (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/ttcmap.c
diff --git a/core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/ttcmap.c b/core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/ttcmap.c
index 668ea7d0d5599753bb9b6daa6c1af1c60ceb2be6..b79d0ad508854ba717b081b49e9abe2704935f6a 100644
--- a/core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/ttcmap.c
+++ b/core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/ttcmap.c
@@ -1451,7 +1451,7 @@
p = table + 8; /* skip language and start index */
count = TT_NEXT_USHORT( p );
- if ( table + length > valid->limit || length < 10 + count/* * 2 */) // Zhangxuefeng 2013.12.23. remove count multiply 2.
+ if ( table + length > valid->limit || length < 10 + count * 2 )
FT_INVALID_TOO_SHORT;
/* check glyph indices */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698