summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJohn Abd-El-Malek <jam@chromium.org>2014-05-20 13:11:44 -0700
committerJohn Abd-El-Malek <jam@chromium.org>2014-05-20 14:21:36 -0700
commit2c4b0465c1b95016a75a5fa10abe0ebb73170ee6 (patch)
treebafe3d0a73ecb60115c5120d64aca9d83eaa3301 /core
parent4fbe779ca9565b5196c88964a517982209eaea0d (diff)
downloadpdfium-2c4b0465c1b95016a75a5fa10abe0ebb73170ee6.tar.xz
cf2hints: Fix early loop termination causing hints to be ignored.
There was a comparison that checks maskEndPtr >= maskEndPtr. It has been fixed to maskPtr >= maskEndPtr. BUG=375139 Patch by Matt Giuca <mgiuca@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/src/fxge/fx_freetype/fxft2.5.01/src/cff/cf2hints.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxge/fx_freetype/fxft2.5.01/src/cff/cf2hints.c b/core/src/fxge/fx_freetype/fxft2.5.01/src/cff/cf2hints.c
index b3f6a04fca..e0755b4c3c 100644
--- a/core/src/fxge/fx_freetype/fxft2.5.01/src/cff/cf2hints.c
+++ b/core/src/fxge/fx_freetype/fxft2.5.01/src/cff/cf2hints.c
@@ -830,7 +830,7 @@
{
/* move to next mask byte */
maskPtr++;
- if (maskEndPtr >= maskEndPtr)
+ if (maskPtr >= maskEndPtr)
{
break;
}