From 214b092b284ad3c6a3c099981be29ef69d400066 Mon Sep 17 00:00:00 2001 From: Jakub Kucharski Date: Tue, 23 Aug 2016 13:20:44 +0200 Subject: [PATCH 2/2] PDFDoc::setDocInfoStringEntry(): treat value consisting of just the unicode marker as an empty string --- poppler/PDFDoc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index f3383fc..f42aa75 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -611,7 +611,7 @@ void PDFDoc::setDocInfoModified(Object *infoObj) void PDFDoc::setDocInfoStringEntry(const char *key, GooString *value) { - GBool removeEntry = !value || value->getLength() == 0; + GBool removeEntry = !value || value->getLength() == 0 || value->hasJustUnicodeMarker(); if (removeEntry) { delete value; } -- 2.9.3