From d069246805f98b11ba3bc3445f6e3bd5c257320c Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 16 May 2007 15:48:02 +0000 Subject: [PATCH] Oops! Incorrect application of a patch... --- src/truetype/ttgload.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index acb5a4e4d..927f8aba7 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 );