]> granicus.if.org Git - imagemagick/commitdiff
Eliminate use of unintialized value
authorCristy <urban-warrior@imagemagick.org>
Tue, 23 Jan 2018 17:04:18 +0000 (12:04 -0500)
committerCristy <urban-warrior@imagemagick.org>
Tue, 23 Jan 2018 17:04:18 +0000 (12:04 -0500)
Credit OSS Fuzz

coders/pcx.c

index e601551e4b3b66a080de1e042ae28d87f9bbfee7..4b526905c1bba5bea34127945a1616297916d74c 100644 (file)
@@ -385,6 +385,7 @@ static Image *ReadPCXImage(const ImageInfo *image_info,ExceptionInfo *exception)
       image->colormap[i].green=ScaleCharToQuantum(*p++);
       image->colormap[i].blue=ScaleCharToQuantum(*p++);
     }
+    (void) SetImageBackgroundColor(image,exception);
     pcx_info.bytes_per_line=ReadBlobLSBShort(image);
     pcx_info.palette_info=ReadBlobLSBShort(image);
     pcx_info.horizontal_screensize=ReadBlobLSBShort(image);