shithub: freetype+ttf2subf

Download patch

ref: a15133e6efc10f5342dedf5dfca9070c8bcc49ca
parent: 9773d5f72136717b41339fe58d72e5c01d0afa04
author: Jonathan Kew <[email protected]>
date: Tue Sep 6 02:33:36 EDT 2016

[cff] Fix uninitialized memory.

Problem reported as

  https://bugzilla.mozilla.org/show_bug.cgi?id=1270288

* src/cff/cf2interp.c (cf2_interpT2CharString): Initialize `storage'
array to handle a `get' opcode without a previous `put'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2016-09-06  Jonathan Kew  <[email protected]>
+
+	[cff] Fix uninitialized memory.
+
+	Problem reported as
+
+	  https://bugzilla.mozilla.org/show_bug.cgi?id=1270288
+
+	* src/cff/cf2interp.c (cf2_interpT2CharString): Initialize `storage'
+	array to handle a `get' opcode without a previous `put'.
+
 2016-09-05  Alexei Podtelezhnikov  <[email protected]>
 
 	* src/smooth/ftgrays.c (gray_move_to, gray_start_cell): Revert.
--- a/src/cff/cf2intrp.c
+++ b/src/cff/cf2intrp.c
@@ -469,6 +469,8 @@
     CF2_GlyphPathRec  glyphPath;
 
 
+    FT_ZERO( &storage );
+
     /* initialize the remaining objects */
     cf2_arrstack_init( &subrStack,
                        memory,