From d813fea05ec0691415ec4319257b017e4768a024 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 26 Feb 2018 20:57:21 -0500 Subject: [PATCH] ... --- coders/pict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/pict.c b/coders/pict.c index 7e1d0e9af..9d31486ca 100644 --- a/coders/pict.c +++ b/coders/pict.c @@ -802,8 +802,8 @@ static MagickBooleanType ReadRectangle(Image *image,PICTRectangle *rectangle) rectangle->bottom=(short) ReadBlobMSBShort(image); rectangle->right=(short) ReadBlobMSBShort(image); if ((EOFBlob(image) != MagickFalse) || - ((rectangle->bottom-rectangle->top) > 0) || - ((rectangle->right-rectangle->left) > 0)) + ((rectangle->bottom-rectangle->top) <= 0) || + ((rectangle->right-rectangle->left) <= 0)) return(MagickFalse); return(MagickTrue); } -- 2.40.0