https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6810
diff --git a/coders/tim.c b/coders/tim.c
index 6d1da32..314ad7d 100644
--- a/coders/tim.c
+++ b/coders/tim.c
@@ -241,6 +241,9 @@
status=SetImageExtent(image,image->columns,image->rows,exception);
if (status == MagickFalse)
return(DestroyImageList(image));
+ status=ResetImagePixels(image,exception);
+ if (status == MagickFalse)
+ return(DestroyImageList(image));
tim_pixels=(unsigned char *) AcquireQuantumMemory(image_size,
sizeof(*tim_pixels));
if (tim_pixels == (unsigned char *) NULL)