From 6fc96993a1a6b795565d7f45315fcfdcd8df71b8 Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Thu, 22 Jul 2010 02:34:55 +0000 Subject: [PATCH] #711: Quickfix for Exif.OlympusIp.0x1104 which points to the beginning of the image. With this change the value is truncated now, i.e., it's size is set to 0. --- src/tiffvisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiffvisitor.cpp b/src/tiffvisitor.cpp index f100b5c6..94c71b4e 100644 --- a/src/tiffvisitor.cpp +++ b/src/tiffvisitor.cpp @@ -1502,7 +1502,7 @@ namespace Exiv2 { byte* pData = p; if ( size > 4 && ( baseOffset() + offset >= size_ - || static_cast(baseOffset()) + offset < 0)) { + || static_cast(baseOffset()) + offset <= 0)) { #ifndef SUPPRESS_WARNINGS std::cerr << "Error: Offset of " << "directory " << tiffGroupName(object->group())