From d460bbdb3f9502f6ddf0dd7f2bcc4f91a5f8d188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Walenciak?= Date: Tue, 19 Sep 2017 22:05:32 +0200 Subject: [PATCH] fix for standard tiff case --- src/bigtiffimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bigtiffimage.cpp b/src/bigtiffimage.cpp index 73ff2540..1f71e37f 100644 --- a/src/bigtiffimage.cpp +++ b/src/bigtiffimage.cpp @@ -320,7 +320,7 @@ namespace Exiv2 conditional_byte_swap_4_array<64>(data.pData_, 0, doSwap_); // big data? Use 'data' as pointer to real data - const bool usePointer = count*size > 8; + const bool usePointer = count*size > dataSize_; if ( usePointer ) // read into buffer {