Bug #1247 » exiv2-fix-oob-setIccProfile.diff
| src/image.cpp (working copy) | ||
|---|---|---|
| 614 | 614 | 
    void Image::setIccProfile(Exiv2::DataBuf& iccProfile,bool bTestValid)  | 
| 615 | 615 | 
        {
   | 
| 616 | 616 | 
            if ( bTestValid ) {
   | 
| 617 | 
    if ( iccProfile.pData_ && ( iccProfile.size_ < sizeof(long)) ) throw Error(53);  | 
|
| 617 | 618 | 
    long size = iccProfile.pData_ ? getULong(iccProfile.pData_, bigEndian): -1;  | 
| 618 | 619 | 
    if ( size!= iccProfile.size_ ) throw Error(53);  | 
| 619 | 620 | 
    }  | 
- « Previous
 - 1
 - 2
 - Next »