[autofit] Prevent SEGV.

See

  https://bugs.ghostscript.com/show_bug.cgi?id=697545

for more details on how the bug was found.

* src/autofit/afloader.c (af_loader_load_glyph): Propagate error
code.
This commit is contained in:
Shailesh Mistry 2018-11-02 10:10:10 +01:00 committed by Werner Lemberg
parent 1e4496c54c
commit 339c451ad0
2 changed files with 22 additions and 4 deletions

View File

@ -1,3 +1,16 @@
2018-11-02 Shailesh Mistry <shailesh.mistry@hotmail.co.uk>
[autofit] Prevent SEGV.
See
https://bugs.ghostscript.com/show_bug.cgi?id=697545
for more details on how the bug was found.
* src/autofit/afloader.c (af_loader_load_glyph): Propagate error
code.
2018-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
[truetype] Speed up variation IUP.

View File

@ -421,10 +421,15 @@
/* 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,
hints,
&gloader->base.outline,
style_metrics );
{
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 */