shithub: freetype+ttf2subf

Download patch

ref: 17196b7c747cf8a7309efda54c99a89d456f0512
parent: f43b3094ef9eec177caafdbc4e73a14be000d127
author: Werner Lemberg <[email protected]>
date: Sat Aug 5 14:58:34 EDT 2017

[truetype] Integer overflow.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2868

* src/truetype/ttinterp.c (Ins_ALIGNRP): Use NEG_LONG.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2017-06-27  Werner Lemberg  <[email protected]>
+
+	[truetype] Integer overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2868
+
+	* src/truetype/ttinterp.c (Ins_ALIGNRP): Use NEG_LONG.
+
 2017-08-05  Werner Lemberg  <[email protected]>
 
 	[base, truetype] New function `FT_Get_Var_Axis_Flags'.
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -6421,7 +6421,7 @@
         distance = PROJECT( exc->zp1.cur + point,
                             exc->zp0.cur + exc->GS.rp0 );
 
-        exc->func_move( exc, &exc->zp1, point, -distance );
+        exc->func_move( exc, &exc->zp1, point, NEG_LONG( distance ) );
       }
 
       exc->GS.loop--;