Werner,

The following is preferable to fix this:

--- old\ftstroke.c      Sat Jul 02 11:37:30 2011
+++ new\ftstroke.c      Mon Aug 15 15:46:29 2011
@@ -2222,9 +2222,13 @@
       if ( error )
         goto Exit;
 
-      error = FT_Stroker_EndSubPath( stroker );
-      if ( error )
-        goto Exit;
+      /* don't try to end the path if no segments have been generated */
+      if ( !stroker->first_point )
+      {
+        error = FT_Stroker_EndSubPath( stroker );
+        if ( error )
+          goto Exit;
+      }
 
       first = last + 1;
     }


Thanks.

David %^>



-----Original Message-----
From: Werner LEMBERG [mailto:invalid.nore...@gnu.org] 
Sent: 12 August 2011 07:55
To: Werner LEMBERG; David Bevan
Subject: [bug #33992] heap underflow in ft_stroke_border_close

Update of bug #33992 (project freetype):

                  Status:                    None => In Progress            
             Assigned to:                    None => wl                     

    _______________________________________________________

Follow-up Comment #1:

David, please check the bug fix.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?33992>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/



_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to