[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1741-ga34130a
[email protected] (Chris Liddell) Wed, 23 Oct 2019 08:23:46 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via a34130a136fa9a61af3991224438dbf31b834767 (commit)
from 5573498b2d9abe918794d377729edeab6b28e1fb (commit)
----------------------------------------------------------------------
commit a34130a136fa9a61af3991224438dbf31b834767
Author: Chris Liddell <[email protected]>
Date: Wed Oct 23 09:22:14 2019 +0100
Coverity ID 350219: Fix mistake in TTF post table handling
Mistakenly passing a pointer into a macro, rather than the variable.
diff --git a/base/gstype42.c b/base/gstype42.c
index 49052a5..1000373 100644
--- a/base/gstype42.c
+++ b/base/gstype42.c
@@ -775,14 +775,14 @@ gs_type42_find_post_name(gs_font_type42 * pfont, gs_glyph glyph, gs_string *gnam
for (i = 0; i < numglyphs; i++) {
byte len;
if (i == gind) {
- READ_SFNTS(pfont, offs, 1, &len);
+ READ_SFNTS(pfont, offs, 1, len);
code = pfont->data.string_proc(pfont, offs + 1, len, (const byte **)&(gname->data));
if (code > 0)
gname->size = len;
break;
}
else {
- READ_SFNTS(pfont, offs, 1, &len);
+ READ_SFNTS(pfont, offs, 1, len);
offs += len + 1;
}
}
Summary of changes:
base/gstype42.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)