From c1f6d214248e46b73120ade1d9188275e7afbe4c Mon Sep 17 00:00:00 2001 From: Andrey Kiselev Date: Sat, 4 Mar 2006 16:00:45 +0000 Subject: [PATCH] Fixed stupid mistake introduced in previous edition. --- libtiff/tif_dirread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c index 9aefe4ef..d04d9ffb 100644 --- a/libtiff/tif_dirread.c +++ b/libtiff/tif_dirread.c @@ -1,4 +1,4 @@ -/* $Id: tif_dirread.c,v 1.76 2006-03-03 13:06:00 dron Exp $ */ +/* $Id: tif_dirread.c,v 1.77 2006-03-04 16:00:45 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -973,7 +973,7 @@ TIFFFetchData(TIFF* tif, TIFFDirEntry* dir, char* cp) tsize_t cc = dir->tdir_count * w; /* Check for overflow. */ - if (!dir->tdir_count || !w || (tsize_t)dir->tdir_count / w != cc) + if (!dir->tdir_count || !w || cc / w != (tsize_t)dir->tdir_count) goto bad; if (!isMapped(tif)) {