b0d2de45cd
I copied the patches, as the changelog changes would certainly conflict.
23 lines
769 B
Diff
23 lines
769 B
Diff
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3774fc08b
|
|
|
|
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
|
|
index d18e821..0baf836 100644
|
|
--- a/src/psaux/psobjs.c
|
|
+++ b/src/psaux/psobjs.c
|
|
@@ -1718,6 +1718,14 @@
|
|
first = outline->n_contours <= 1
|
|
? 0 : outline->contours[outline->n_contours - 2] + 1;
|
|
|
|
+ /* in malformed fonts it can happen that a contour was started */
|
|
+ /* but no points were added */
|
|
+ if ( outline->n_contours && first == outline->n_points )
|
|
+ {
|
|
+ outline->n_contours--;
|
|
+ return;
|
|
+ }
|
|
+
|
|
/* We must not include the last point in the path if it */
|
|
/* is located on the first point. */
|
|
if ( outline->n_points > 1 )
|
|
|