aboutsummaryrefslogtreecommitdiff
path: root/freetype/src/cff/cffparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'freetype/src/cff/cffparse.c')
-rw-r--r--freetype/src/cff/cffparse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/freetype/src/cff/cffparse.c b/freetype/src/cff/cffparse.c
index 8174b8234..38ba7d88f 100644
--- a/freetype/src/cff/cffparse.c
+++ b/freetype/src/cff/cffparse.c
@@ -745,8 +745,10 @@
p++;
for (;;)
{
+ /* An unterminated floating point number at the */
+ /* end of a dictionary is invalid but harmless. */
if ( p >= limit )
- goto Syntax_Error;
+ goto Exit;
v = p[0] >> 4;
if ( v == 15 )
break;