|
|
@ -1598,6 +1598,9 @@ namespace Exiv2 {
|
|
|
|
if ( !isize ) {
|
|
|
|
if ( !isize ) {
|
|
|
|
v->read(pData, size, byteOrder());
|
|
|
|
v->read(pData, size, byteOrder());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// Prevent large memory allocations: https://github.com/Exiv2/exiv2/issues/1881
|
|
|
|
|
|
|
|
enforce(isize <= 1024 * 1024, kerCorruptedMetadata);
|
|
|
|
|
|
|
|
|
|
|
|
// #1143 Write a "hollow" buffer for the preview image
|
|
|
|
// #1143 Write a "hollow" buffer for the preview image
|
|
|
|
// Sadly: we don't know the exact location of the image in the source (it's near offset)
|
|
|
|
// Sadly: we don't know the exact location of the image in the source (it's near offset)
|
|
|
|
// And neither TiffReader nor TiffEntryBase have access to the BasicIo object being processed
|
|
|
|
// And neither TiffReader nor TiffEntryBase have access to the BasicIo object being processed
|
|
|
|