diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2021-08-13 15:02:06 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2021-08-13 15:02:06 +0100 |
commit | c8e25a0dfea429462f0308ea60d61237b52faabc (patch) | |
tree | 33a85d9128489b3061ab7f7d9b0d8445bbc8f7cf /xps | |
parent | 3ad6090b4bd2001864cb979c300684c630db9c6f (diff) | |
download | ghostpdl-c8e25a0dfea429462f0308ea60d61237b52faabc.tar.gz |
Fix for Coverity ID: 372304
Store and act on error return code from gs_type42_font_init() in
xps_init_truetype_font()
Diffstat (limited to 'xps')
-rw-r--r-- | xps/xpsttf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xps/xpsttf.c b/xps/xpsttf.c index efac6f91e..22ddf5251 100644 --- a/xps/xpsttf.c +++ b/xps/xpsttf.c @@ -424,7 +424,9 @@ xps_init_truetype_font(xps_context_t *ctx, xps_font_t *font) p42->data.string_proc = xps_true_callback_string_proc; p42->data.proc_data = font; - gs_type42_font_init(p42, font->subfontid); + code = gs_type42_font_init(p42, font->subfontid); + if (code < 0) + return code; p42->data.get_glyph_index = xps_true_get_glyph_index; } |