#1247 Thank You Hanno for reporting this and providing a patch.

v0.27.3
Robin Mills 9 years ago
parent 6a1b7d262f
commit 021bf5c237

@ -614,6 +614,7 @@ namespace Exiv2 {
void Image::setIccProfile(Exiv2::DataBuf& iccProfile,bool bTestValid)
{
if ( bTestValid ) {
if ( iccProfile.pData_ && ( iccProfile.size_ < sizeof(long)) ) throw Error(53);
long size = iccProfile.pData_ ? getULong(iccProfile.pData_, bigEndian): -1;
if ( size!= iccProfile.size_ ) throw Error(53);
}

Loading…
Cancel
Save