[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 339c451: [autofit] Prevent SEGV.
From: |
Werner LEMBERG |
Subject: |
[freetype2] master 339c451: [autofit] Prevent SEGV. |
Date: |
Fri, 2 Nov 2018 05:11:30 -0400 (EDT) |
branch: master
commit 339c451ad0e8a743b59fb2bd0589fe9362b45024
Author: Shailesh Mistry <address@hidden>
Commit: Werner Lemberg <address@hidden>
[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.
---
ChangeLog | 13 +++++++++++++
src/autofit/afloader.c | 13 +++++++++----
2 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 40eb273..9ac8395 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2018-11-02 Shailesh Mistry <address@hidden>
+
+ [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 <address@hidden>
[truetype] Speed up variation IUP.
diff --git a/src/autofit/afloader.c b/src/autofit/afloader.c
index 301f377..406940b 100644
--- a/src/autofit/afloader.c
+++ b/src/autofit/afloader.c
@@ -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 */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 339c451: [autofit] Prevent SEGV.,
Werner LEMBERG <=