diff options
author | Shailesh Mistry <shailesh.mistry@hotmail.co.uk> | 2018-10-23 17:19:31 +0100 |
---|---|---|
committer | Shailesh Mistry <shailesh.mistry@hotmail.co.uk> | 2018-11-01 21:37:49 +0000 |
commit | d0abc92713b2e84eb32c67839ddec2d160b3af8d (patch) | |
tree | 3f935fcc5aedb28008f69fd62cc5f1e43da1c5c6 /freetype | |
parent | ece5cbbd9979cd35737b00e68267762d72feb2ea (diff) | |
download | ghostpdl-d0abc92713b2e84eb32c67839ddec2d160b3af8d.tar.gz |
Bug 697545 : Prevent SEGV by propagating error code in af_loader_load_glyph.
Propagate error by checking for return code.
Error created using :-
MEMENTO_FAILAT=31598 ./membin/gpcl6 -sDEVICE=pbmraw -dMaxBitmap=2000 -o /dev/null ./tests_private/pcl/pcl5cfts/fts.0270
Diffstat (limited to 'freetype')
-rw-r--r-- | freetype/src/autofit/afloader.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/freetype/src/autofit/afloader.c b/freetype/src/autofit/afloader.c index a55550b33..e37a1abd8 100644 --- a/freetype/src/autofit/afloader.c +++ b/freetype/src/autofit/afloader.c @@ -426,10 +426,14 @@ /* now load the slot image into the auto-outline */ /* and run the automatic hinting process */ if ( writing_system_class->style_hints_apply ) - writing_system_class->style_hints_apply( glyph_index, + { + error = writing_system_class->style_hints_apply( glyph_index, hints, &gloader->base.outline, style_metrics ); + if ( error ) + goto Exit; + } /* we now need to adjust the metrics according to the change in */ /* width/positioning that occurred during the hinting process */ |