Skip to content

Commit c26872e

Browse files
committed
[svg] Clear correct flags for doc ownership
This issue was discovered with an SVG based font with some documents compressed and other uncompressed. After loading the first compressed document the ownership flag on the glyph slot was set to true but never set to false. As a result after loading a compressed document a glyph from an uncompressed document would load fine, but when this glyph slot was cleared it would try to free its document resulting in a wild free. * src/base/ftobjs.c (ft_glyphslot_clear): clear correct flags Fixes: #1162
1 parent d685798 commit c26872e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base/ftobjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@
605605

606606

607607
FT_FREE( doc->svg_document );
608-
slot->internal->load_flags &= ~FT_GLYPH_OWN_GZIP_SVG;
608+
slot->internal->flags &= ~FT_GLYPH_OWN_GZIP_SVG;
609609
}
610610
}
611611
#endif

0 commit comments

Comments
 (0)