* src/truetype/ttgload.c (load_truetype_glyph): Save and restore

memory stream to avoid a crash with the incremental memory
interface (Savannah bug #19260).
This commit is contained in:
Werner Lemberg 2007-04-09 08:40:11 +00:00
parent c81cf61fcf
commit f4a52a6c42
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-04-09 Martin Horak <horakm@centrum.cz>
* src/truetype/ttgload.c (load_truetype_glyph): Save and restore
memory stream to avoid a crash with the incremental memory
interface (Savannah bug #19260).
2007-04-06 David Turner <david@freetype.org>
* src/base/ftbimap.c (ft_bitmap_assure_buffer): Fix buffer-overwrite bug

View File

@ -1377,6 +1377,8 @@
FT_UInt num_subglyphs = gloader->current.num_subglyphs;
FT_UInt num_base_subgs = gloader->base.num_subglyphs;
FT_Stream old_stream = loader->stream;
FT_GlyphLoader_Add( gloader );
@ -1430,6 +1432,7 @@
num_base_points );
}
loader->stream = old_stream;
/* process the glyph */
loader->ins_pos = ins_pos;