Commit d069246805f98b11ba3bc3445f6e3bd5c257320c

Werner Lemberg 2007-05-16T15:48:02

Oops! Incorrect application of a patch...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index acb5a4e..927f8ab 100644
--- 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 );