shithub: freetype+ttf2subf

Download patch

ref: d069246805f98b11ba3bc3445f6e3bd5c257320c
parent: 95bc9d3a0713596bc83ddfc0d487488fefc4dc88
author: Werner Lemberg <[email protected]>
date: Wed May 16 11:48:02 EDT 2007

Oops!  Incorrect application of a patch...

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -271,7 +271,11 @@
 
     n_points = 0;
     if ( n_contours > 0 )
+    {
       n_points = cont[-1] + 1;
+      if ( n_points < 0 )
+        goto Invalid_Outline;
+    }
 
     /* note that we will add four phantom points later */
     error = FT_GLYPHLOADER_CHECK_POINTS( gloader, n_points + 4, 0 );