From 4c17bc16b08dae95d035a0b8fbdd359316780dc6 Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Wed, 2 Sep 2009 13:33:32 +0000 Subject: [PATCH] #647: Fixed type of offset which may be negative. --- src/tiffvisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiffvisitor.cpp b/src/tiffvisitor.cpp index bfd30c02..07c7606a 100644 --- a/src/tiffvisitor.cpp +++ b/src/tiffvisitor.cpp @@ -1313,7 +1313,7 @@ namespace Exiv2 { } p += 4; uint32_t size = typeSize * count; - uint32_t offset = getLong(p, byteOrder()); + int32_t offset = getLong(p, byteOrder()); byte* pData = p; if (size > 4 && baseOffset() + offset >= size_) { #ifndef SUPPRESS_WARNINGS