]> granicus.if.org Git - imagemagick/commitdiff
Shift bytes instead.
authorDirk Lemstra <dirk@lemstra.org>
Sun, 7 Jul 2019 19:38:08 +0000 (21:38 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Sun, 7 Jul 2019 19:38:08 +0000 (21:38 +0200)
coders/pdf.c

index 7bc8a623672673b4dcdab66990a7a95c0a87295f..52fae6b929349dd2d31d56b187dd9c21c49ac28a 100644 (file)
@@ -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;
       }