#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.

This commit is contained in:
Andreas Huggel 2010-07-22 02:34:55 +00:00
parent c8138546a7
commit 6fc96993a1

View File

@ -1502,7 +1502,7 @@ namespace Exiv2 {
byte* pData = p;
if ( size > 4
&& ( baseOffset() + offset >= size_
|| static_cast<int32_t>(baseOffset()) + offset < 0)) {
|| static_cast<int32_t>(baseOffset()) + offset <= 0)) {
#ifndef SUPPRESS_WARNINGS
std::cerr << "Error: Offset of "
<< "directory " << tiffGroupName(object->group())