#647: Fixed type of offset which may be negative.

This commit is contained in:
Andreas Huggel 2009-09-02 13:33:32 +00:00
parent 57f53b1229
commit 4c17bc16b0

View File

@ -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