summaryrefslogtreecommitdiff
path: root/src/cff/cffparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cff/cffparse.c')
-rw-r--r--src/cff/cffparse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cff/cffparse.c b/src/cff/cffparse.c
index 89a0263b7..c850dfc61 100644
--- a/src/cff/cffparse.c
+++ b/src/cff/cffparse.c
@@ -1200,8 +1200,8 @@
FT_Byte* charstring_base;
FT_ULong charstring_len;
- FT_Fixed* stack;
- FT_Byte* q;
+ FT_Fixed* stack;
+ FT_Byte* q = NULL;
charstring_base = ++p;
@@ -1243,7 +1243,7 @@
/* converting it back to charstring number representations */
/* (this is ugly, I know). */
/* The maximum required size is 5 bytes per stack element. */
- if ( FT_QALLOC( q, 2 * sizeof ( FT_ListNode ) +
+ if ( FT_QALLOC( q, (FT_Long)( 2 * sizeof ( FT_ListNode ) ) +
5 * ( decoder.top - decoder.stack ) ) )
goto Exit;