#1247 Fix Linux/GCC compilation warning. Added Hanno's file to the test suite.
This commit is contained in:
+1
-1
@@ -614,7 +614,7 @@ namespace Exiv2 {
|
||||
void Image::setIccProfile(Exiv2::DataBuf& iccProfile,bool bTestValid)
|
||||
{
|
||||
if ( bTestValid ) {
|
||||
if ( iccProfile.pData_ && ( iccProfile.size_ < sizeof(long)) ) throw Error(53);
|
||||
if ( iccProfile.pData_ && ( iccProfile.size_ < (long) sizeof(long)) ) throw Error(53);
|
||||
long size = iccProfile.pData_ ? getULong(iccProfile.pData_, bigEndian): -1;
|
||||
if ( size!= iccProfile.size_ ) throw Error(53);
|
||||
}
|
||||
|
||||
@@ -607,6 +607,12 @@ source ./functions.source
|
||||
copyTestFile $filename
|
||||
runTest exiv2 -pa $filename
|
||||
|
||||
num=1247
|
||||
printf "$num " >&3
|
||||
filename=exiv2-bug$num.jpg
|
||||
copyTestFile $filename
|
||||
runTest exiv2 -pa $filename
|
||||
|
||||
) 3>&1 > $results 2>&1
|
||||
|
||||
printf "\n"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 17 B |
Reference in New Issue
Block a user