Newer
Older
Import / applications / MakePDF / 3rdParty / libharu / pr-patches / 0001-One-more-stream-error.patch
@John Ryland John Ryland on 22 Dec 2020 777 bytes import NUC files
From 9b29fea27fb3f3d45392d4124f32852274eb0aab Mon Sep 17 00:00:00 2001
From: Boris Madzar <p@wspnr.com>
Date: Sat, 11 Apr 2015 23:36:38 -0400
Subject: [PATCH] One more stream error

---
 src/hpdf_fontdef_tt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hpdf_fontdef_tt.c b/src/hpdf_fontdef_tt.c
index 97fd57b..56bc5ba 100644
--- a/src/hpdf_fontdef_tt.c
+++ b/src/hpdf_fontdef_tt.c
@@ -1073,7 +1073,7 @@ ParseCMAP_format4  (HPDF_FontDef  fontdef,
 
     num_read = HPDF_Stream_Tell (attr->stream) - offset;
     if (num_read < 0)
-        return HPDF_Error_GetCode (fontdef->error);
+        return HPDF_Error_GetCode (attr->stream->error);
 
     attr->cmap.glyph_id_array_count = (attr->cmap.length - num_read) / 2;
 
-- 
2.21.1 (Apple Git-122.3)