From 169a3ff38425613b156015c23056c4adf0dbf221 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 1 Feb 2018 19:04:57 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5373 --- coders/txt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coders/txt.c b/coders/txt.c index 5b0f155ec..80cdf7af8 100644 --- a/coders/txt.c +++ b/coders/txt.c @@ -437,6 +437,8 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception) (void) ReadBlobString(image,text); if (LocaleNCompare((char *) text,MagickID,strlen(MagickID)) != 0) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); + x_offset=(-1); + y_offset=(-1); do { width=0; -- 2.40.0