#647: Fixed type of offset which may be negative.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user