From 0f49c4aaacafaa8fe3f77b7888d1c4af45daf007 Mon Sep 17 00:00:00 2001
From: "Sven M. Hallberg" <pesco@khjk.org>
Date: Thu, 20 Feb 2020 17:46:56 +0100
Subject: [PATCH] call postordinate parser from filters

---
 pdf.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pdf.c b/pdf.c
index 200dddf..55df706 100644
--- a/pdf.c
+++ b/pdf.c
@@ -1451,6 +1451,9 @@ RunLengthDecode(const Dict *parms, HBytes b, HParser *p)
 		return NULL;
 	}
 
+	assert(res->ast && res->ast->token_type == TT_BYTES);
+	res = h_parse(p, res->ast->bytes.token, res->ast->bytes.len);
+
 	return res;
 }
 
@@ -1470,6 +1473,9 @@ ASCIIHexDecode(const Dict *parms, HBytes b, HParser *p)
 		return NULL;
 	}
 
+	assert(res->ast && res->ast->token_type == TT_BYTES);
+	res = h_parse(p, res->ast->bytes.token, res->ast->bytes.len);
+
 	return res;
 }
 
@@ -1489,6 +1495,9 @@ ASCII85Decode(const Dict *parms, HBytes b, HParser *p)
 		return NULL;
 	}
 
+	assert(res->ast && res->ast->token_type == TT_BYTES);
+	res = h_parse(p, res->ast->bytes.token, res->ast->bytes.len);
+
 	return res;
 }
 
-- 
GitLab