diff options
author | John Abd-El-Malek <jam@chromium.org> | 2014-05-20 13:11:44 -0700 |
---|---|---|
committer | John Abd-El-Malek <jam@chromium.org> | 2014-05-20 14:21:36 -0700 |
commit | 2c4b0465c1b95016a75a5fa10abe0ebb73170ee6 (patch) | |
tree | bafe3d0a73ecb60115c5120d64aca9d83eaa3301 /core/src | |
parent | 4fbe779ca9565b5196c88964a517982209eaea0d (diff) | |
download | pdfium-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/src')
-rw-r--r-- | core/src/fxge/fx_freetype/fxft2.5.01/src/cff/cf2hints.c | 2 |
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; } |