From 82c685a2cdab3e9c2e77e8e9963c624f4a690b3e Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 7 Jul 2019 21:38:08 +0200 Subject: [PATCH] Shift bytes instead. --- coders/pdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/pdf.c b/coders/pdf.c index 7bc8a6236..52fae6b92 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -495,7 +495,7 @@ static void ReadPDFXMPProfile(PDFInfo *pdf_info,PDFBuffer *buffer) { if (count == (ssize_t) length) { - length+=length; + length<<=1; SetStringInfoLength(pdf_info->profile,length); p=(char *) GetStringInfoDatum(pdf_info->profile)+count; } -- 2.40.0