Hi,

this bug really sucks because development with libsdl-ttf doesn't 
really work without this patch. And it is very annoying to patch 
every workstation by hand.

So _please_ add this patch to debian etch (stable).

# cat 374062_bug_honschu.diff 

--- freetype-2.2.1.orig/src/base/ftutil.c
+++ freetype-2.2.1/src/base/ftutil.c
@@ -120,12 +120,12 @@
     FT_Error  error = FT_Err_Ok;
 
 
-    if ( cur_count < 0 || new_count < 0 || item_size <= 0 )
+    if ( cur_count < 0 || new_count < 0 || item_size < 0 )
     {
       /* may help catch/prevent nasty security issues */
       error = FT_Err_Invalid_Argument;
     }
-    else if ( new_count == 0 )
+    else if ( new_count == 0 || item_size == 0 )
     {
       ft_mem_free( memory, block );
       block = NULL;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to