freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] [bug #33992] heap underflow in ft_stroke_border_close


From: David Bevan
Subject: Re: [ft-devel] [bug #33992] heap underflow in ft_stroke_border_close
Date: Mon, 15 Aug 2011 11:05:12 -0400

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:address@hidden 
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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]