]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5805
authorCristy <urban-warrior@imagemagick.org>
Tue, 30 Jan 2018 01:11:11 +0000 (20:11 -0500)
committerCristy <urban-warrior@imagemagick.org>
Tue, 30 Jan 2018 01:11:11 +0000 (20:11 -0500)
coders/pnm.c

index 8184730f0af393beeeff4135cfe53faa53c11f57..d72e14d5324200ee0bba041fcbe1d55a2237d5ad 100644 (file)
@@ -428,6 +428,7 @@ static Image *ReadPNMImage(const ImageInfo *image_info,ExceptionInfo *exception)
     status=SetImageExtent(image,image->columns,image->rows,exception);
     if (status == MagickFalse)
       return(DestroyImageList(image));
+    (void) SetImageBackgroundColor(image,exception);
     /*
       Convert PNM pixels to runextent-encoded MIFF packets.
     */