#647: Fixed type of offset which may be negative.
This commit is contained in:
parent
57f53b1229
commit
4c17bc16b0
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user