From 27cf70bb8484d134f13661460a21ea0d46c35c3c Mon Sep 17 00:00:00 2001 From: Jakub Alba 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 ed2dbba..cd6cc7b 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -615,7 +615,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.10.1