Fix off-by-(-1) in checkRawImageThumb() (#3553)

Kudos to @heckflosse!
This commit is contained in:
Flössie
2016-12-22 18:23:25 +01:00
parent 829ffc7e72
commit 138d531edc

View File

@@ -55,7 +55,7 @@ namespace
? raw_image.get_thumbWidth() * raw_image.get_thumbHeight() * (raw_image.get_thumbBPS() / 8) * 3
: raw_image.get_thumbLength();
return raw_image.get_thumbOffset() + length < raw_image.get_file()->size;
return raw_image.get_thumbOffset() + length <= raw_image.get_file()->size;
}
}