idx
int64
func_before
string
Vulnerability Classification
string
vul
int64
func_after
string
patch
string
CWE ID
string
lines_before
string
lines_after
string
12,800
static void ExportTIFF_PhotographicSensitivity ( SXMPMeta * xmp, TIFF_Manager * exif ) { try { bool foundXMP, foundExif; TIFF_Manager::TagInfo tagInfo; std::string xmpValue; XMP_OptionBits flags; XMP_Int32 binValue = 0; bool haveOldExif = true; // Default to old Exif if no version tag. foundExif...
DoS
0
static void ExportTIFF_PhotographicSensitivity ( SXMPMeta * xmp, TIFF_Manager * exif ) { try { bool foundXMP, foundExif; TIFF_Manager::TagInfo tagInfo; std::string xmpValue; XMP_OptionBits flags; XMP_Int32 binValue = 0; bool haveOldExif = true; // Default to old Exif if no version tag. foundExif...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,801
ExportTIFF_StandardMappings ( XMP_Uns8 ifd, TIFF_Manager * tiff, const SXMPMeta & xmp ) { const bool nativeEndian = tiff->IsNativeEndian(); TIFF_Manager::TagInfo tagInfo; std::string xmpValue; XMP_OptionBits xmpForm; const TIFF_MappingToXMP * mappings = 0; if ( ifd == kTIFF_PrimaryIFD ) { mappings = sPrimaryI...
DoS
0
ExportTIFF_StandardMappings ( XMP_Uns8 ifd, TIFF_Manager * tiff, const SXMPMeta & xmp ) { const bool nativeEndian = tiff->IsNativeEndian(); TIFF_Manager::TagInfo tagInfo; std::string xmpValue; XMP_OptionBits xmpForm; const TIFF_MappingToXMP * mappings = 0; if ( ifd == kTIFF_PrimaryIFD ) { mappings = sPrimaryI...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,802
static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) { XMP_Uns32 value = 0; const char * strEnd = strPtr + count; while ( strPtr < strEnd ) { char ch = *strPtr; if ( (ch < '0') || (ch > '9') ) break; value = value*10 + (ch - '0'); ++strPtr; } return value; } // GatherInt
DoS
0
static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) { XMP_Uns32 value = 0; const char * strEnd = strPtr + count; while ( strPtr < strEnd ) { char ch = *strPtr; if ( (ch < '0') || (ch > '9') ) break; value = value*10 + (ch - '0'); ++strPtr; } return value; } // GatherInt
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,803
static void Import3WayDateTime ( XMP_Uns16 exifTag, const TIFF_Manager & exif, const IPTC_Manager & iptc, SXMPMeta * xmp, int iptcDigestState, const IPTC_Manager & oldIPTC ) { XMP_Uns8 iptcDS; XMP_StringPtr xmpNS, xmpProp; if ( exifTag == kTIFF_DateTimeOriginal ) { iptcDS = kIPTC_DateCreated; xmpNS ...
DoS
0
static void Import3WayDateTime ( XMP_Uns16 exifTag, const TIFF_Manager & exif, const IPTC_Manager & iptc, SXMPMeta * xmp, int iptcDigestState, const IPTC_Manager & oldIPTC ) { XMP_Uns8 iptcDS; XMP_StringPtr xmpNS, xmpProp; if ( exifTag == kTIFF_DateTimeOriginal ) { iptcDS = kIPTC_DateCreated; xmpNS ...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,804
ImportArrayTIFF ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { switch ( tagInfo.type ) { case kTIFF_ShortType : ImportArrayTIFF_Short ( tagInfo, nativeEndian, xmp, xmpNS, xmpProp ); break; case kTIFF_LongType : Impor...
DoS
0
ImportArrayTIFF ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { switch ( tagInfo.type ) { case kTIFF_ShortType : ImportArrayTIFF_Short ( tagInfo, nativeEndian, xmp, xmpNS, xmpProp ); break; case kTIFF_LongType : Impor...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,805
ImportArrayTIFF_Byte ( const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns8 * binPtr = (XMP_Uns8*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't keep appending, create a new ...
DoS
0
ImportArrayTIFF_Byte ( const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns8 * binPtr = (XMP_Uns8*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't keep appending, create a new ...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,806
ImportArrayTIFF_Double ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. double * binPtr = (double*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't keep ap...
DoS
0
ImportArrayTIFF_Double ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. double * binPtr = (double*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't keep ap...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,807
ImportArrayTIFF_Long ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns32 * binPtr = (XMP_Uns32*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't ke...
DoS
0
ImportArrayTIFF_Long ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns32 * binPtr = (XMP_Uns32*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't ke...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,808
ImportArrayTIFF_Rational ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns32 * binPtr = (XMP_Uns32*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don...
DoS
0
ImportArrayTIFF_Rational ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns32 * binPtr = (XMP_Uns32*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,809
ImportArrayTIFF_SByte ( const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int8 * binPtr = (XMP_Int8*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't keep appending, create a new a...
DoS
0
ImportArrayTIFF_SByte ( const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int8 * binPtr = (XMP_Int8*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't keep appending, create a new a...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,810
ImportArrayTIFF_SRational ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int32 * binPtr = (XMP_Int32*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don'...
DoS
0
ImportArrayTIFF_SRational ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int32 * binPtr = (XMP_Int32*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don'...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,811
ImportArrayTIFF_SShort ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int16 * binPtr = (XMP_Int16*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't k...
DoS
0
ImportArrayTIFF_SShort ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int16 * binPtr = (XMP_Int16*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't k...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,812
ImportArrayTIFF_Short ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns16 * binPtr = (XMP_Uns16*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't kee...
DoS
0
ImportArrayTIFF_Short ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns16 * binPtr = (XMP_Uns16*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't kee...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,813
ImportConversionTable ( const TIFF_Manager::TagInfo & tagInfo, bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { const bool isSigned = (tagInfo.id == kTIFF_OECF); XMP_Assert ( (tagInfo.id == kTIFF_OECF) || (tagInfo.id == kTIFF_SpatialFrequencyResponse) ); xmp->DeleteProperty ...
DoS
0
ImportConversionTable ( const TIFF_Manager::TagInfo & tagInfo, bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { const bool isSigned = (tagInfo.id == kTIFF_OECF); XMP_Assert ( (tagInfo.id == kTIFF_OECF) || (tagInfo.id == kTIFF_SpatialFrequencyResponse) ); xmp->DeleteProperty ...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,814
ImportSingleTIFF ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { switch ( tagInfo.type ) { case kTIFF_ShortType : ImportSingleTIFF_Short ( tagInfo, nativeEndian, xmp, xmpNS, xmpProp ); break; case kTIFF_LongType : Im...
DoS
0
ImportSingleTIFF ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { switch ( tagInfo.type ) { case kTIFF_ShortType : ImportSingleTIFF_Short ( tagInfo, nativeEndian, xmp, xmpNS, xmpProp ); break; case kTIFF_LongType : Im...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,815
ImportSingleTIFF_ASCII ( const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. TrimTrailingSpaces ( (TIFF_Manager::TagInfo*) &tagInfo ); if ( tagInfo.dataLen == 0 ) return; // Ignore empty tags. const char...
DoS
0
ImportSingleTIFF_ASCII ( const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. TrimTrailingSpaces ( (TIFF_Manager::TagInfo*) &tagInfo ); if ( tagInfo.dataLen == 0 ) return; // Ignore empty tags. const char...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,816
ImportSingleTIFF_Byte ( const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns8 binValue = *((XMP_Uns8*)tagInfo.dataPtr); char strValue[20]; snprintf ( strValue, sizeof(strValue), "%hu", (XMP_Uns16)bi...
DoS
0
ImportSingleTIFF_Byte ( const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns8 binValue = *((XMP_Uns8*)tagInfo.dataPtr); char strValue[20]; snprintf ( strValue, sizeof(strValue), "%hu", (XMP_Uns16)bi...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,817
ImportSingleTIFF_Double ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. double binValue = *((double*)tagInfo.dataPtr); if ( ! nativeEndian ) Flip8 ( &binValue ); xmp->SetPr...
DoS
0
ImportSingleTIFF_Double ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. double binValue = *((double*)tagInfo.dataPtr); if ( ! nativeEndian ) Flip8 ( &binValue ); xmp->SetPr...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,818
ImportSingleTIFF_Float ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. float binValue = *((float*)tagInfo.dataPtr); if ( ! nativeEndian ) Flip4 ( &binValue ); xmp->SetProper...
DoS
0
ImportSingleTIFF_Float ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. float binValue = *((float*)tagInfo.dataPtr); if ( ! nativeEndian ) Flip4 ( &binValue ); xmp->SetProper...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,819
ImportSingleTIFF_Long ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns32 binValue = GetUns32AsIs ( tagInfo.dataPtr ); if ( ! nativeEndian ) binValue = Flip4 ( binValue );...
DoS
0
ImportSingleTIFF_Long ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns32 binValue = GetUns32AsIs ( tagInfo.dataPtr ); if ( ! nativeEndian ) binValue = Flip4 ( binValue );...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,820
ImportSingleTIFF_SByte ( const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int8 binValue = *((XMP_Int8*)tagInfo.dataPtr); char strValue[20]; snprintf ( strValue, sizeof(strValue), "%hd", (short)binV...
DoS
0
ImportSingleTIFF_SByte ( const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int8 binValue = *((XMP_Int8*)tagInfo.dataPtr); char strValue[20]; snprintf ( strValue, sizeof(strValue), "%hd", (short)binV...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,821
ImportSingleTIFF_SLong ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int32 binValue = *((XMP_Int32*)tagInfo.dataPtr); if ( ! nativeEndian ) Flip4 ( &binValue ); char s...
DoS
0
ImportSingleTIFF_SLong ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int32 binValue = *((XMP_Int32*)tagInfo.dataPtr); if ( ! nativeEndian ) Flip4 ( &binValue ); char s...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,822
ImportSingleTIFF_SRational ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. #if SUNOS_SPARC || XMP_IOS_ARM XMP_Uns32 binPtr[2]; memcpy(&binPtr, tagInfo.dataPtr, si...
DoS
0
ImportSingleTIFF_SRational ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. #if SUNOS_SPARC || XMP_IOS_ARM XMP_Uns32 binPtr[2]; memcpy(&binPtr, tagInfo.dataPtr, si...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,823
ImportSingleTIFF_SShort ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int16 binValue = *((XMP_Int16*)tagInfo.dataPtr); if ( ! nativeEndian ) Flip2 ( &binValue ); char...
DoS
0
ImportSingleTIFF_SShort ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Int16 binValue = *((XMP_Int16*)tagInfo.dataPtr); if ( ! nativeEndian ) Flip2 ( &binValue ); char...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,824
ImportSingleTIFF_Short ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns16 binValue = GetUns16AsIs ( tagInfo.dataPtr ); if ( ! nativeEndian ) binValue = Flip2 ( binValue ...
DoS
0
ImportSingleTIFF_Short ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns16 binValue = GetUns16AsIs ( tagInfo.dataPtr ); if ( ! nativeEndian ) binValue = Flip2 ( binValue ...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,825
ImportTIFF_CFATable ( const TIFF_Manager::TagInfo & tagInfo, bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. const XMP_Uns8 * bytePtr = (XMP_Uns8*)tagInfo.dataPtr; const XMP_Uns8 * byteEnd = bytePtr + tagInfo.dataLen; XM...
DoS
0
ImportTIFF_CFATable ( const TIFF_Manager::TagInfo & tagInfo, bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. const XMP_Uns8 * bytePtr = (XMP_Uns8*)tagInfo.dataPtr; const XMP_Uns8 * byteEnd = bytePtr + tagInfo.dataLen; XM...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,826
ImportTIFF_CheckStandardMapping ( const TIFF_Manager::TagInfo & tagInfo, const TIFF_MappingToXMP & mapInfo ) { XMP_Assert ( (kTIFF_ByteType <= tagInfo.type) && (tagInfo.type <= kTIFF_LastType) ); XMP_Assert ( mapInfo.type <= kTIFF_LastType ); if ( (tagInfo.type < kTIFF_ByteType) || (tagInfo.type > kTIFF_LastType) )...
DoS
0
ImportTIFF_CheckStandardMapping ( const TIFF_Manager::TagInfo & tagInfo, const TIFF_MappingToXMP & mapInfo ) { XMP_Assert ( (kTIFF_ByteType <= tagInfo.type) && (tagInfo.type <= kTIFF_LastType) ); XMP_Assert ( mapInfo.type <= kTIFF_LastType ); if ( (tagInfo.type < kTIFF_ByteType) || (tagInfo.type > kTIFF_LastType) )...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,827
ImportTIFF_DSDTable ( const TIFF_Manager & tiff, const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. const XMP_Uns8 * bytePtr = (XMP_Uns8*)tagInfo.dataPtr; const XMP_Uns8 * byteEnd = bytePtr + tagInfo.dataLe...
DoS
0
ImportTIFF_DSDTable ( const TIFF_Manager & tiff, const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. const XMP_Uns8 * bytePtr = (XMP_Uns8*)tagInfo.dataPtr; const XMP_Uns8 * byteEnd = bytePtr + tagInfo.dataLe...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,828
ImportTIFF_Date ( const TIFF_Manager & tiff, const TIFF_Manager::TagInfo & dateInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { XMP_Uns16 secID = 0; switch ( dateInfo.id ) { case kTIFF_DateTime : secID = kTIFF_SubSecTime; break; case kTIFF_DateTimeOriginal : secID = kTIFF_SubSe...
DoS
0
ImportTIFF_Date ( const TIFF_Manager & tiff, const TIFF_Manager::TagInfo & dateInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { XMP_Uns16 secID = 0; switch ( dateInfo.id ) { case kTIFF_DateTime : secID = kTIFF_SubSecTime; break; case kTIFF_DateTimeOriginal : secID = kTIFF_SubSe...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,829
ImportTIFF_EncodedString ( const TIFF_Manager & tiff, const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp, bool isLangAlt = false ) { try { // Don't let errors with one stop the others. std::string strValue; bool ok = tiff.DecodeString ( tagInfo.dataPtr, tagIn...
DoS
0
ImportTIFF_EncodedString ( const TIFF_Manager & tiff, const TIFF_Manager::TagInfo & tagInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp, bool isLangAlt = false ) { try { // Don't let errors with one stop the others. std::string strValue; bool ok = tiff.DecodeString ( tagInfo.dataPtr, tagIn...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,830
ImportTIFF_Flash ( const TIFF_Manager::TagInfo & tagInfo, bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns16 binValue = GetUns16AsIs ( tagInfo.dataPtr ); if ( ! nativeEndian ) binValue = Flip2 ( binValue ); bool f...
DoS
0
ImportTIFF_Flash ( const TIFF_Manager::TagInfo & tagInfo, bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns16 binValue = GetUns16AsIs ( tagInfo.dataPtr ); if ( ! nativeEndian ) binValue = Flip2 ( binValue ); bool f...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,831
ImportTIFF_GPSTimeStamp ( const TIFF_Manager & tiff, const TIFF_Manager::TagInfo & timeInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. const bool nativeEndian = tiff.IsNativeEndian(); bool haveDate; TIFF_Manager::TagInfo dateInfo; ...
DoS
0
ImportTIFF_GPSTimeStamp ( const TIFF_Manager & tiff, const TIFF_Manager::TagInfo & timeInfo, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. const bool nativeEndian = tiff.IsNativeEndian(); bool haveDate; TIFF_Manager::TagInfo dateInfo; ...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,832
static void ImportTIFF_PhotographicSensitivity ( const TIFF_Manager & exif, SXMPMeta * xmp ) { try { bool found; TIFF_Manager::TagInfo tagInfo; bool haveOldExif = true; // Default to old Exif if no version tag. bool haveTag34855 = false; bool haveLowISO = false; // Set for real if haveTag34855 is true...
DoS
0
static void ImportTIFF_PhotographicSensitivity ( const TIFF_Manager & exif, SXMPMeta * xmp ) { try { bool found; TIFF_Manager::TagInfo tagInfo; bool haveOldExif = true; // Default to old Exif if no version tag. bool haveTag34855 = false; bool haveLowISO = false; // Set for real if haveTag34855 is true...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,833
ImportTIFF_StandardMappings ( XMP_Uns8 ifd, const TIFF_Manager & tiff, SXMPMeta * xmp ) { const bool nativeEndian = tiff.IsNativeEndian(); TIFF_Manager::TagInfo tagInfo; const TIFF_MappingToXMP * mappings = 0; if ( ifd == kTIFF_PrimaryIFD ) { mappings = sPrimaryIFDMappings; } else if ( ifd == kTIFF_ExifIFD ) {...
DoS
0
ImportTIFF_StandardMappings ( XMP_Uns8 ifd, const TIFF_Manager & tiff, SXMPMeta * xmp ) { const bool nativeEndian = tiff.IsNativeEndian(); TIFF_Manager::TagInfo tagInfo; const TIFF_MappingToXMP * mappings = 0; if ( ifd == kTIFF_PrimaryIFD ) { mappings = sPrimaryIFDMappings; } else if ( ifd == kTIFF_ExifIFD ) {...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,834
bool PhotoDataUtils::IsValueDifferent ( const TIFF_Manager::TagInfo & exifInfo, const std::string & xmpValue, std::string * exifValue ) { if ( exifInfo.dataLen == 0 ) return false; // Ignore empty Exif values. if ( ReconcileUtils::IsUTF8 ( exifInfo.dataPtr, exifInfo.dataLen ) ) { // ! Note that ASCII is UTF-8. exi...
DoS
0
bool PhotoDataUtils::IsValueDifferent ( const TIFF_Manager::TagInfo & exifInfo, const std::string & xmpValue, std::string * exifValue ) { if ( exifInfo.dataLen == 0 ) return false; // Ignore empty Exif values. if ( ReconcileUtils::IsUTF8 ( exifInfo.dataPtr, exifInfo.dataLen ) ) { // ! Note that ASCII is UTF-8. exi...
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,835
static void TrimTrailingSpaces ( std::string * stdstr ) { size_t origLen = stdstr->size(); size_t newLen = TrimTrailingSpaces ( (char*)stdstr->c_str(), origLen ); if ( newLen != origLen ) stdstr->erase ( newLen ); }
DoS
0
static void TrimTrailingSpaces ( std::string * stdstr ) { size_t origLen = stdstr->size(); size_t newLen = TrimTrailingSpaces ( (char*)stdstr->c_str(), origLen ); if ( newLen != origLen ) stdstr->erase ( newLen ); }
@@ -233,7 +233,7 @@ static XMP_Uns32 GatherInt ( const char * strPtr, size_t count ) static size_t TrimTrailingSpaces ( char * firstChar, size_t origLen ) { - if ( origLen == 0 ) return 0; + if ( !firstChar || origLen == 0 ) return 0; char * lastChar = firstChar + origLen - 1; if ( (*lastChar != ' ') && (*la...
CWE-416
null
null
12,836
const TIFF_MemoryReader::TweakedIFDEntry* TIFF_MemoryReader::FindTagInIFD ( XMP_Uns8 ifd, XMP_Uns16 id ) const { if ( ifd == kTIFF_KnownIFD ) { } if ( ifd > kTIFF_LastRealIFD ) XMP_Throw ( "Invalid IFD requested", kXMPErr_InternalFailure ); const TweakedIFDInfo* thisIFD = &containedIFDs[ifd]; if ( thisIFD->count...
DoS
0
const TIFF_MemoryReader::TweakedIFDEntry* TIFF_MemoryReader::FindTagInIFD ( XMP_Uns8 ifd, XMP_Uns16 id ) const { if ( ifd == kTIFF_KnownIFD ) { } if ( ifd > kTIFF_LastRealIFD ) XMP_Throw ( "Invalid IFD requested", kXMPErr_InternalFailure ); const TweakedIFDInfo* thisIFD = &containedIFDs[ifd]; if ( thisIFD->count...
@@ -70,7 +70,7 @@ void TIFF_MemoryReader::SortIFD ( TweakedIFDInfo* thisIFD ) } else if ( thisTag == prevTag ) { // Duplicate tag, keep the 2nd copy, move the tail of the array up, prevTag is unchanged. - memcpy ( &ifdEntries[i-1], &ifdEntries[i], 12*(tagCount-i) ); // AUDIT: Safe, moving tail forward, i >= ...
CWE-416
null
null
12,837
static bool _xmp_error_callback(void* context, XMP_ErrorSeverity severity, XMP_Int32 cause, XMP_StringPtr message) { return false; }
DoS
0
static bool _xmp_error_callback(void* context, XMP_ErrorSeverity severity, XMP_Int32 cause, XMP_StringPtr message) { return false; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,838
static void create_tls_key() { (void)pthread_key_create(&key, destroy_tls_key); }
DoS
0
static void create_tls_key() { (void)pthread_key_create(&key, destroy_tls_key); }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,839
static void destroy_tls_key(void *ptr) { int *err_ptr = static_cast<int *>(ptr); delete err_ptr; }
DoS
0
static void destroy_tls_key(void *ptr) { int *err_ptr = static_cast<int *>(ptr); delete err_ptr; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,840
static int get_error_for_thread() { int *err_ptr; pthread_once(&key_once, create_tls_key); err_ptr = (int *)pthread_getspecific(key); if (err_ptr == NULL) { return 0; } return *err_ptr; }
DoS
0
static int get_error_for_thread() { int *err_ptr; pthread_once(&key_once, create_tls_key); err_ptr = (int *)pthread_getspecific(key); if (err_ptr == NULL) { return 0; } return *err_ptr; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,841
static void set_error(int err) { g_error = err; }
DoS
0
static void set_error(int err) { g_error = err; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,842
static void set_error(int err) { int *err_ptr; pthread_once(&key_once, create_tls_key); err_ptr = (int *)pthread_getspecific(key); if (err_ptr == NULL) { err_ptr = new int; pthread_setspecific(key, err_ptr); } *err_ptr = err; }
DoS
0
static void set_error(int err) { int *err_ptr; pthread_once(&key_once, create_tls_key); err_ptr = (int *)pthread_getspecific(key); if (err_ptr == NULL) { err_ptr = new int; pthread_setspecific(key, err_ptr); } *err_ptr = err; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,843
bool xmp_append_array_item(XmpPtr xmp, const char *schema, const char *name, uint32_t arrayOptions, const char *value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); tr...
DoS
0
bool xmp_append_array_item(XmpPtr xmp, const char *schema, const char *name, uint32_t arrayOptions, const char *value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); tr...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,844
XmpPtr xmp_copy(XmpPtr xmp) { CHECK_PTR(xmp, NULL); RESET_ERROR; try { auto txmp = std::unique_ptr<SXMPMeta>(new SXMPMeta(*(SXMPMeta *)xmp)); return reinterpret_cast<XmpPtr>(txmp.release()); } catch (const XMP_Error &e) { set_error(e); } return NULL; }
DoS
0
XmpPtr xmp_copy(XmpPtr xmp) { CHECK_PTR(xmp, NULL); RESET_ERROR; try { auto txmp = std::unique_ptr<SXMPMeta>(new SXMPMeta(*(SXMPMeta *)xmp)); return reinterpret_cast<XmpPtr>(txmp.release()); } catch (const XMP_Error &e) { set_error(e); } return NULL; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,845
int xmp_datetime_compare(XmpDateTime *left, XmpDateTime *right) { if (!left && !right) { return 0; } if (!left) { return -1; } if (!right) { return 1; } XMP_DateTime _left; ASSIGN(_left, *left); XMP_DateTime _right; ASSIGN(_right, *right); return XMPUt...
DoS
0
int xmp_datetime_compare(XmpDateTime *left, XmpDateTime *right) { if (!left && !right) { return 0; } if (!left) { return -1; } if (!right) { return 1; } XMP_DateTime _left; ASSIGN(_left, *left); XMP_DateTime _right; ASSIGN(_right, *right); return XMPUt...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,846
bool xmp_delete_localized_text(XmpPtr xmp, const char *schema, const char *name, const char *genericLang, const char *specificLang) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = true; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try...
DoS
0
bool xmp_delete_localized_text(XmpPtr xmp, const char *schema, const char *name, const char *genericLang, const char *specificLang) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = true; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,847
bool xmp_delete_property(XmpPtr xmp, const char *schema, const char *name) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = true; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try { txmp->DeleteProperty(schema, name); } catch (const XMP_Error &e) { set_error(e); ret...
DoS
0
bool xmp_delete_property(XmpPtr xmp, const char *schema, const char *name) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = true; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try { txmp->DeleteProperty(schema, name); } catch (const XMP_Error &e) { set_error(e); ret...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,848
bool xmp_files_can_put_xmp_cstr(XmpFilePtr xf, const char* xmp_packet, size_t len) { CHECK_PTR(xf, false); RESET_ERROR; SXMPFiles *txf = reinterpret_cast<SXMPFiles*>(xf); bool result = false; try { result = txf->CanPutXMP(xmp_packet, len); } catch(const XMP_Error & e) { set_error(e); return f...
DoS
0
bool xmp_files_can_put_xmp_cstr(XmpFilePtr xf, const char* xmp_packet, size_t len) { CHECK_PTR(xf, false); RESET_ERROR; SXMPFiles *txf = reinterpret_cast<SXMPFiles*>(xf); bool result = false; try { result = txf->CanPutXMP(xmp_packet, len); } catch(const XMP_Error & e) { set_error(e); return f...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,849
bool xmp_files_can_put_xmp_xmpstring(XmpFilePtr xf, XmpStringPtr xmp_packet) { CHECK_PTR(xf, false); RESET_ERROR; SXMPFiles *txf = reinterpret_cast<SXMPFiles*>(xf); bool result = false; try { result = txf->CanPutXMP(*reinterpret_cast<const std::string*>(xmp_packet)); } catch(const XMP_Error & e) { ...
DoS
0
bool xmp_files_can_put_xmp_xmpstring(XmpFilePtr xf, XmpStringPtr xmp_packet) { CHECK_PTR(xf, false); RESET_ERROR; SXMPFiles *txf = reinterpret_cast<SXMPFiles*>(xf); bool result = false; try { result = txf->CanPutXMP(*reinterpret_cast<const std::string*>(xmp_packet)); } catch(const XMP_Error & e) { ...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,850
XmpFileType xmp_files_check_file_format(const char *filePath) { CHECK_PTR(filePath, XMP_FT_UNKNOWN); RESET_ERROR; XmpFileType file_type = XMP_FT_UNKNOWN; try { file_type = (XmpFileType)SXMPFiles::CheckFileFormat(filePath); } catch (const XMP_Error &e) { set_error(e); ret...
DoS
0
XmpFileType xmp_files_check_file_format(const char *filePath) { CHECK_PTR(filePath, XMP_FT_UNKNOWN); RESET_ERROR; XmpFileType file_type = XMP_FT_UNKNOWN; try { file_type = (XmpFileType)SXMPFiles::CheckFileFormat(filePath); } catch (const XMP_Error &e) { set_error(e); ret...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,851
bool xmp_files_close(XmpFilePtr xf, XmpCloseFileOptions options) { CHECK_PTR(xf, false); RESET_ERROR; try { auto txf = reinterpret_cast<SXMPFiles *>(xf); txf->CloseFile(options); } catch (const XMP_Error &e) { set_error(e); return false; } return true; }
DoS
0
bool xmp_files_close(XmpFilePtr xf, XmpCloseFileOptions options) { CHECK_PTR(xf, false); RESET_ERROR; try { auto txf = reinterpret_cast<SXMPFiles *>(xf); txf->CloseFile(options); } catch (const XMP_Error &e) { set_error(e); return false; } return true; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,852
bool xmp_files_free(XmpFilePtr xf) { CHECK_PTR(xf, false); RESET_ERROR; auto txf = reinterpret_cast<SXMPFiles *>(xf); try { delete txf; } catch (const XMP_Error &e) { set_error(e); return false; } return true; }
DoS
0
bool xmp_files_free(XmpFilePtr xf) { CHECK_PTR(xf, false); RESET_ERROR; auto txf = reinterpret_cast<SXMPFiles *>(xf); try { delete txf; } catch (const XMP_Error &e) { set_error(e); return false; } return true; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,853
bool xmp_files_get_format_info(XmpFileType format, XmpFileFormatOptions *options) { RESET_ERROR; bool result = false; try { result = SXMPFiles::GetFormatInfo(format, (XMP_OptionBits *)options); } catch (const XMP_Error &e) { set_error(e); retur...
DoS
0
bool xmp_files_get_format_info(XmpFileType format, XmpFileFormatOptions *options) { RESET_ERROR; bool result = false; try { result = SXMPFiles::GetFormatInfo(format, (XMP_OptionBits *)options); } catch (const XMP_Error &e) { set_error(e); retur...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,854
XmpPtr xmp_files_get_new_xmp(XmpFilePtr xf) { CHECK_PTR(xf, NULL); RESET_ERROR; auto txf = reinterpret_cast<SXMPFiles *>(xf); bool result = false; try { auto xmp = std::unique_ptr<SXMPMeta>(new SXMPMeta); result = txf->GetXMP(xmp.get()); if (result) { return rein...
DoS
0
XmpPtr xmp_files_get_new_xmp(XmpFilePtr xf) { CHECK_PTR(xf, NULL); RESET_ERROR; auto txf = reinterpret_cast<SXMPFiles *>(xf); bool result = false; try { auto xmp = std::unique_ptr<SXMPMeta>(new SXMPMeta); result = txf->GetXMP(xmp.get()); if (result) { return rein...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,855
bool xmp_files_get_xmp(XmpFilePtr xf, XmpPtr xmp) { CHECK_PTR(xf, false); CHECK_PTR(xmp, false); RESET_ERROR; bool result = false; try { auto txf = reinterpret_cast<SXMPFiles *>(xf); result = txf->GetXMP(reinterpret_cast<SXMPMeta *>(xmp)); } catch (const XMP_Error &e) { ...
DoS
0
bool xmp_files_get_xmp(XmpFilePtr xf, XmpPtr xmp) { CHECK_PTR(xf, false); CHECK_PTR(xmp, false); RESET_ERROR; bool result = false; try { auto txf = reinterpret_cast<SXMPFiles *>(xf); result = txf->GetXMP(reinterpret_cast<SXMPMeta *>(xmp)); } catch (const XMP_Error &e) { ...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,856
bool xmp_files_get_xmp_xmpstring(XmpFilePtr xf, XmpStringPtr xmp_packet, XmpPacketInfo* packet_info) { CHECK_PTR(xf, false); CHECK_PTR(xmp_packet, false); RESET_ERROR; bool result = false; try { SXMPFiles *txf = reinterpret_cast<SXMPFiles*>(xf); XMP_PacketInfo xmp_pac...
DoS
0
bool xmp_files_get_xmp_xmpstring(XmpFilePtr xf, XmpStringPtr xmp_packet, XmpPacketInfo* packet_info) { CHECK_PTR(xf, false); CHECK_PTR(xmp_packet, false); RESET_ERROR; bool result = false; try { SXMPFiles *txf = reinterpret_cast<SXMPFiles*>(xf); XMP_PacketInfo xmp_pac...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,857
XmpFilePtr xmp_files_new() { RESET_ERROR; try { auto txf = std::unique_ptr<SXMPFiles>(new SXMPFiles()); return reinterpret_cast<XmpFilePtr>(txf.release()); } catch (const XMP_Error &e) { set_error(e); } return NULL; }
DoS
0
XmpFilePtr xmp_files_new() { RESET_ERROR; try { auto txf = std::unique_ptr<SXMPFiles>(new SXMPFiles()); return reinterpret_cast<XmpFilePtr>(txf.release()); } catch (const XMP_Error &e) { set_error(e); } return NULL; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,858
bool xmp_files_open(XmpFilePtr xf, const char *path, XmpOpenFileOptions options) { CHECK_PTR(xf, false); RESET_ERROR; auto txf = reinterpret_cast<SXMPFiles *>(xf); try { return txf->OpenFile(path, XMP_FT_UNKNOWN, options); } catch (const XMP_Error &e) { set_error(e); } re...
DoS
0
bool xmp_files_open(XmpFilePtr xf, const char *path, XmpOpenFileOptions options) { CHECK_PTR(xf, false); RESET_ERROR; auto txf = reinterpret_cast<SXMPFiles *>(xf); try { return txf->OpenFile(path, XMP_FT_UNKNOWN, options); } catch (const XMP_Error &e) { set_error(e); } re...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,859
XmpFilePtr xmp_files_open_new(const char *path, XmpOpenFileOptions options) { CHECK_PTR(path, NULL); RESET_ERROR; try { auto txf = std::unique_ptr<SXMPFiles>(new SXMPFiles); txf->OpenFile(path, XMP_FT_UNKNOWN, options); return reinterpret_cast<XmpFilePtr>(txf.release()); } ...
DoS
0
XmpFilePtr xmp_files_open_new(const char *path, XmpOpenFileOptions options) { CHECK_PTR(path, NULL); RESET_ERROR; try { auto txf = std::unique_ptr<SXMPFiles>(new SXMPFiles); txf->OpenFile(path, XMP_FT_UNKNOWN, options); return reinterpret_cast<XmpFilePtr>(txf.release()); } ...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,860
bool xmp_files_put_xmp(XmpFilePtr xf, XmpPtr xmp) { CHECK_PTR(xf, false); CHECK_PTR(xmp, false); RESET_ERROR; auto txf = reinterpret_cast<SXMPFiles *>(xf); try { txf->PutXMP(*reinterpret_cast<const SXMPMeta *>(xmp)); } catch (const XMP_Error &e) { set_error(e); retur...
DoS
0
bool xmp_files_put_xmp(XmpFilePtr xf, XmpPtr xmp) { CHECK_PTR(xf, false); CHECK_PTR(xmp, false); RESET_ERROR; auto txf = reinterpret_cast<SXMPFiles *>(xf); try { txf->PutXMP(*reinterpret_cast<const SXMPMeta *>(xmp)); } catch (const XMP_Error &e) { set_error(e); retur...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,861
bool xmp_files_put_xmp_xmpstring(XmpFilePtr xf, XmpStringPtr xmp_packet) { CHECK_PTR(xf, false); CHECK_PTR(xmp_packet, false); RESET_ERROR; SXMPFiles *txf = reinterpret_cast<SXMPFiles*>(xf); try { txf->PutXMP(*reinterpret_cast<const std::string*>(xmp_packet)); } catch(const XMP_Error & e) { set_e...
DoS
0
bool xmp_files_put_xmp_xmpstring(XmpFilePtr xf, XmpStringPtr xmp_packet) { CHECK_PTR(xf, false); CHECK_PTR(xmp_packet, false); RESET_ERROR; SXMPFiles *txf = reinterpret_cast<SXMPFiles*>(xf); try { txf->PutXMP(*reinterpret_cast<const std::string*>(xmp_packet)); } catch(const XMP_Error & e) { set_e...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,862
bool xmp_get_array_item(XmpPtr xmp, const char *schema, const char *name, int32_t index, XmpStringPtr property, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; try { auto txmp = reinterpret_cast<const SXMPMeta *>(xmp);...
DoS
0
bool xmp_get_array_item(XmpPtr xmp, const char *schema, const char *name, int32_t index, XmpStringPtr property, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; try { auto txmp = reinterpret_cast<const SXMPMeta *>(xmp);...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,863
int xmp_get_error() { #if HAVE_NATIVE_TLS return g_error; #else return get_error_for_thread(); #endif }
DoS
0
int xmp_get_error() { #if HAVE_NATIVE_TLS return g_error; #else return get_error_for_thread(); #endif }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,864
bool xmp_get_localized_text(XmpPtr xmp, const char *schema, const char *name, const char *genericLang, const char *specificLang, XmpStringPtr actualLang, XmpStringPtr itemValue, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESE...
DoS
0
bool xmp_get_localized_text(XmpPtr xmp, const char *schema, const char *name, const char *genericLang, const char *specificLang, XmpStringPtr actualLang, XmpStringPtr itemValue, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESE...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,865
bool xmp_get_property_bool(XmpPtr xmp, const char *schema, const char *name, bool *property, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; try { auto txmp = reinterpret_cast<const SXMPMeta *>(xmp); XMP_OptionBits optionBits; ...
DoS
0
bool xmp_get_property_bool(XmpPtr xmp, const char *schema, const char *name, bool *property, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; try { auto txmp = reinterpret_cast<const SXMPMeta *>(xmp); XMP_OptionBits optionBits; ...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,866
bool xmp_get_property_date(XmpPtr xmp, const char *schema, const char *name, XmpDateTime *property, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; try { auto txmp = reinterpret_cast<const SXMPMeta *>(xmp); XMP_OptionBits optionBit...
DoS
0
bool xmp_get_property_date(XmpPtr xmp, const char *schema, const char *name, XmpDateTime *property, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; try { auto txmp = reinterpret_cast<const SXMPMeta *>(xmp); XMP_OptionBits optionBit...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,867
bool xmp_get_property_int32(XmpPtr xmp, const char *schema, const char *name, int32_t *property, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; try { auto txmp = reinterpret_cast<const SXMPMeta *>(xmp); XMP_OptionBits optionBits;...
DoS
0
bool xmp_get_property_int32(XmpPtr xmp, const char *schema, const char *name, int32_t *property, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; try { auto txmp = reinterpret_cast<const SXMPMeta *>(xmp); XMP_OptionBits optionBits;...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,868
bool xmp_get_property_int64(XmpPtr xmp, const char *schema, const char *name, int64_t *property, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; try { auto txmp = reinterpret_cast<const SXMPMeta *>(xmp); XMP_OptionBits optionBits;...
DoS
0
bool xmp_get_property_int64(XmpPtr xmp, const char *schema, const char *name, int64_t *property, uint32_t *propsBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; try { auto txmp = reinterpret_cast<const SXMPMeta *>(xmp); XMP_OptionBits optionBits;...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,869
bool xmp_has_property(XmpPtr xmp, const char *schema, const char *name) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = true; auto txmp = reinterpret_cast<const SXMPMeta *>(xmp); try { ret = txmp->DoesPropertyExist(schema, name); } catch (const XMP_Error &e) { set_error(e);...
DoS
0
bool xmp_has_property(XmpPtr xmp, const char *schema, const char *name) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = true; auto txmp = reinterpret_cast<const SXMPMeta *>(xmp); try { ret = txmp->DoesPropertyExist(schema, name); } catch (const XMP_Error &e) { set_error(e);...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,870
bool xmp_iterator_free(XmpIteratorPtr iter) { CHECK_PTR(iter, false); RESET_ERROR; auto titer = reinterpret_cast<SXMPIterator *>(iter); delete titer; return true; }
DoS
0
bool xmp_iterator_free(XmpIteratorPtr iter) { CHECK_PTR(iter, false); RESET_ERROR; auto titer = reinterpret_cast<SXMPIterator *>(iter); delete titer; return true; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,871
XmpIteratorPtr xmp_iterator_new(XmpPtr xmp, const char *schema, const char *propName, XmpIterOptions options) { CHECK_PTR(xmp, NULL); RESET_ERROR; try { auto xiter = std::unique_ptr<SXMPIterator>( new SXMPIterator(*(SXMPMeta *)xmp, schema, propName, optio...
DoS
0
XmpIteratorPtr xmp_iterator_new(XmpPtr xmp, const char *schema, const char *propName, XmpIterOptions options) { CHECK_PTR(xmp, NULL); RESET_ERROR; try { auto xiter = std::unique_ptr<SXMPIterator>( new SXMPIterator(*(SXMPMeta *)xmp, schema, propName, optio...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,872
bool xmp_iterator_next(XmpIteratorPtr iter, XmpStringPtr schema, XmpStringPtr propName, XmpStringPtr propValue, uint32_t *options) { CHECK_PTR(iter, false); RESET_ERROR; auto titer = reinterpret_cast<SXMPIterator *>(iter); return titer->Next(reinterpret_cast...
DoS
0
bool xmp_iterator_next(XmpIteratorPtr iter, XmpStringPtr schema, XmpStringPtr propName, XmpStringPtr propValue, uint32_t *options) { CHECK_PTR(iter, false); RESET_ERROR; auto titer = reinterpret_cast<SXMPIterator *>(iter); return titer->Next(reinterpret_cast...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,873
bool xmp_iterator_skip(XmpIteratorPtr iter, XmpIterSkipOptions options) { CHECK_PTR(iter, false); RESET_ERROR; auto titer = reinterpret_cast<SXMPIterator *>(iter); titer->Skip(options); return true; }
DoS
0
bool xmp_iterator_skip(XmpIteratorPtr iter, XmpIterSkipOptions options) { CHECK_PTR(iter, false); RESET_ERROR; auto titer = reinterpret_cast<SXMPIterator *>(iter); titer->Skip(options); return true; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,874
XmpPtr xmp_new(const char *buffer, size_t len) { CHECK_PTR(buffer, NULL); RESET_ERROR; try { auto txmp = std::unique_ptr<SXMPMeta>(new SXMPMeta(buffer, len)); return reinterpret_cast<XmpPtr>(txmp.release()); } catch (const XMP_Error &e) { set_error(e); } return NULL;...
DoS
0
XmpPtr xmp_new(const char *buffer, size_t len) { CHECK_PTR(buffer, NULL); RESET_ERROR; try { auto txmp = std::unique_ptr<SXMPMeta>(new SXMPMeta(buffer, len)); return reinterpret_cast<XmpPtr>(txmp.release()); } catch (const XMP_Error &e) { set_error(e); } return NULL;...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,875
XmpPtr xmp_new_empty() { RESET_ERROR; SXMPMeta *txmp = new SXMPMeta; return (XmpPtr)txmp; }
DoS
0
XmpPtr xmp_new_empty() { RESET_ERROR; SXMPMeta *txmp = new SXMPMeta; return (XmpPtr)txmp; }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,876
bool xmp_register_namespace(const char *namespaceURI, const char *suggestedPrefix, XmpStringPtr registeredPrefix) { RESET_ERROR; try { return SXMPMeta::RegisterNamespace(namespaceURI, suggestedPrefix, STRI...
DoS
0
bool xmp_register_namespace(const char *namespaceURI, const char *suggestedPrefix, XmpStringPtr registeredPrefix) { RESET_ERROR; try { return SXMPMeta::RegisterNamespace(namespaceURI, suggestedPrefix, STRI...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,877
bool xmp_serialize_and_format(XmpPtr xmp, XmpStringPtr buffer, uint32_t options, uint32_t padding, const char *newline, const char *tab, int32_t indent) { CHECK_PTR(xmp, false); CHECK_PTR(buffer, false); RESET_ERROR; SXMPMeta *txmp = (SXMPMeta...
DoS
0
bool xmp_serialize_and_format(XmpPtr xmp, XmpStringPtr buffer, uint32_t options, uint32_t padding, const char *newline, const char *tab, int32_t indent) { CHECK_PTR(xmp, false); CHECK_PTR(buffer, false); RESET_ERROR; SXMPMeta *txmp = (SXMPMeta...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,878
bool xmp_set_array_item(XmpPtr xmp, const char *schema, const char *name, int32_t index, const char *value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try { txmp->SetArrayItem(schema, na...
DoS
0
bool xmp_set_array_item(XmpPtr xmp, const char *schema, const char *name, int32_t index, const char *value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try { txmp->SetArrayItem(schema, na...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,879
bool xmp_set_localized_text(XmpPtr xmp, const char *schema, const char *name, const char *genericLang, const char *specificLang, const char *value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = true; auto txmp = reinterpret...
DoS
0
bool xmp_set_localized_text(XmpPtr xmp, const char *schema, const char *name, const char *genericLang, const char *specificLang, const char *value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = true; auto txmp = reinterpret...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,880
bool xmp_set_property(XmpPtr xmp, const char *schema, const char *name, const char *value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); if ((optionBits & (XMP_PROP_VALUE_IS_STRUCT | XMP_PROP_VALUE_I...
DoS
0
bool xmp_set_property(XmpPtr xmp, const char *schema, const char *name, const char *value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); if ((optionBits & (XMP_PROP_VALUE_IS_STRUCT | XMP_PROP_VALUE_I...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,881
bool xmp_set_property_float(XmpPtr xmp, const char *schema, const char *name, double value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try { txmp->SetProperty_Float(schema, name, val...
DoS
0
bool xmp_set_property_float(XmpPtr xmp, const char *schema, const char *name, double value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try { txmp->SetProperty_Float(schema, name, val...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,882
bool xmp_set_property_int32(XmpPtr xmp, const char *schema, const char *name, int32_t value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try { txmp->SetProperty_Int(schema, name, valu...
DoS
0
bool xmp_set_property_int32(XmpPtr xmp, const char *schema, const char *name, int32_t value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try { txmp->SetProperty_Int(schema, name, valu...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,883
bool xmp_set_property_int64(XmpPtr xmp, const char *schema, const char *name, int64_t value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try { txmp->SetProperty_Int64(schema, name, va...
DoS
0
bool xmp_set_property_int64(XmpPtr xmp, const char *schema, const char *name, int64_t value, uint32_t optionBits) { CHECK_PTR(xmp, false); RESET_ERROR; bool ret = false; auto txmp = reinterpret_cast<SXMPMeta *>(xmp); try { txmp->SetProperty_Int64(schema, name, va...
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,884
size_t xmp_string_len(XmpStringPtr s) { CHECK_PTR(s, 0); return reinterpret_cast<const std::string *>(s)->size(); }
DoS
0
size_t xmp_string_len(XmpStringPtr s) { CHECK_PTR(s, 0); return reinterpret_cast<const std::string *>(s)->size(); }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,885
void xmp_terminate() { RESET_ERROR; SXMPFiles::Terminate(); }
DoS
0
void xmp_terminate() { RESET_ERROR; SXMPFiles::Terminate(); }
@@ -195,10 +195,8 @@ bool xmp_init() RESET_ERROR; try { // no need to initialize anything else. - // XMP SDK 5.1.2 needs this because it has been lobotomized of local - // text - // conversion - // the one that was done in Exempi with libiconv. + // XMP SDK 5.1.2 ne...
CWE-416
null
null
12,886
ContainerChunk::ContainerChunk( ContainerChunk* parent, XMP_Uns32 id, XMP_Uns32 containerType ) : Chunk( NULL /* !! */, chunk_CONTAINER, id ) { XMP_Enforce( parent != NULL ); this->containerType = containerType; this->newSize = 12; this->parent = parent; chunkVect* siblings = &parent->children; siblings->push_...
DoS Overflow
0
ContainerChunk::ContainerChunk( ContainerChunk* parent, XMP_Uns32 id, XMP_Uns32 containerType ) : Chunk( NULL /* !! */, chunk_CONTAINER, id ) { XMP_Enforce( parent != NULL ); this->containerType = containerType; this->newSize = 12; this->parent = parent; chunkVect* siblings = &parent->children; siblings->push_...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,887
ContainerChunk::ContainerChunk( ContainerChunk* parent, RIFF_MetaHandler* handler ) : Chunk( parent, handler, false, chunk_CONTAINER ) { bool repairMode = ( 0 != ( handler->parent->openFlags & kXMPFiles_OpenRepairFile )); try { XMP_IO* file = handler->parent->ioRef; XMP_Uns8 level = handler->level; this->con...
DoS Overflow
0
ContainerChunk::ContainerChunk( ContainerChunk* parent, RIFF_MetaHandler* handler ) : Chunk( parent, handler, false, chunk_CONTAINER ) { bool repairMode = ( 0 != ( handler->parent->openFlags & kXMPFiles_OpenRepairFile )); try { XMP_IO* file = handler->parent->ioRef; XMP_Uns8 level = handler->level; this->con...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,888
JunkChunk::JunkChunk( ContainerChunk* parent, XMP_Int64 size ) : Chunk( parent, chunk_JUNK, kChunk_JUNK ) { XMP_Assert( size >= 8 ); this->oldSize = size; this->newSize = size; this->hasChange = true; }
DoS Overflow
0
JunkChunk::JunkChunk( ContainerChunk* parent, XMP_Int64 size ) : Chunk( parent, chunk_JUNK, kChunk_JUNK ) { XMP_Assert( size >= 8 ); this->oldSize = size; this->newSize = size; this->hasChange = true; }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,889
ValueChunk::ValueChunk( ContainerChunk* parent, std::string value, XMP_Uns32 id ) : Chunk( parent, chunk_VALUE, id ) { this->oldValue = std::string(); this->SetValue( value ); }
DoS Overflow
0
ValueChunk::ValueChunk( ContainerChunk* parent, std::string value, XMP_Uns32 id ) : Chunk( parent, chunk_VALUE, id ) { this->oldValue = std::string(); this->SetValue( value ); }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,890
ValueChunk::ValueChunk( ContainerChunk* parent, RIFF_MetaHandler* handler ) : Chunk( parent, handler, false, chunk_VALUE ) { XMP_IO* file = handler->parent->ioRef; XMP_Uns8 level = handler->level; XMP_Int32 length = (XMP_Int32) this->oldSize - 8; this->oldValue.reserve( length ); this->oldValue.assign( length + ...
DoS Overflow
0
ValueChunk::ValueChunk( ContainerChunk* parent, RIFF_MetaHandler* handler ) : Chunk( parent, handler, false, chunk_VALUE ) { XMP_IO* file = handler->parent->ioRef; XMP_Uns8 level = handler->level; XMP_Int32 length = (XMP_Int32) this->oldSize - 8; this->oldValue.reserve( length ); this->oldValue.assign( length + ...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,891
XMPChunk::XMPChunk( ContainerChunk* parent ) : Chunk( parent, chunk_XMP , kChunk_XMP ) { }
DoS Overflow
0
XMPChunk::XMPChunk( ContainerChunk* parent ) : Chunk( parent, chunk_XMP , kChunk_XMP ) { }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,892
XMPChunk::XMPChunk( ContainerChunk* parent, RIFF_MetaHandler* handler ) : Chunk( parent, handler, false, chunk_XMP ) { chunkType = chunk_XMP; XMP_IO* file = handler->parent->ioRef; XMP_Uns8 level = handler->level; handler->packetInfo.offset = this->oldPos + 8; handler->packetInfo.length = (XMP_Int32) this->oldSiz...
DoS Overflow
0
XMPChunk::XMPChunk( ContainerChunk* parent, RIFF_MetaHandler* handler ) : Chunk( parent, handler, false, chunk_XMP ) { chunkType = chunk_XMP; XMP_IO* file = handler->parent->ioRef; XMP_Uns8 level = handler->level; handler->packetInfo.offset = this->oldPos + 8; handler->packetInfo.length = (XMP_Int32) this->oldSiz...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,893
void Chunk::changesAndSize( RIFF_MetaHandler* handler ) { hasChange = false; // unknown chunk ==> no change, naturally this->newSize = this->oldSize; }
DoS Overflow
0
void Chunk::changesAndSize( RIFF_MetaHandler* handler ) { hasChange = false; // unknown chunk ==> no change, naturally this->newSize = this->oldSize; }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,894
void ContainerChunk::changesAndSize( RIFF_MetaHandler* handler ) { bool isRIFFContainer = (this->id == kChunk_RIFF); bool isLISTContainer = (this->id == kChunk_LIST); XMP_Enforce ( isRIFFContainer | isLISTContainer ); XMP_Index childIndex; // Could be local to the loops, this simplifies debuging. Need a signed ...
DoS Overflow
0
void ContainerChunk::changesAndSize( RIFF_MetaHandler* handler ) { bool isRIFFContainer = (this->id == kChunk_RIFF); bool isLISTContainer = (this->id == kChunk_LIST); XMP_Enforce ( isRIFFContainer | isLISTContainer ); XMP_Index childIndex; // Could be local to the loops, this simplifies debuging. Need a signed ...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,895
void XMPChunk::changesAndSize( RIFF_MetaHandler* handler ) { XMP_Enforce( &handler->xmpPacket != 0 ); XMP_Enforce( handler->xmpPacket.size() > 0 ); this->newSize = 8 + handler->xmpPacket.size(); XMP_Validate( this->newSize <= 0xFFFFFFFFLL, "no single chunk may be above 4 GB", kXMPErr_InternalFailure ); this->has...
DoS Overflow
0
void XMPChunk::changesAndSize( RIFF_MetaHandler* handler ) { XMP_Enforce( &handler->xmpPacket != 0 ); XMP_Enforce( handler->xmpPacket.size() > 0 ); this->newSize = 8 + handler->xmpPacket.size(); XMP_Validate( this->newSize <= 0xFFFFFFFFLL, "no single chunk may be above 4 GB", kXMPErr_InternalFailure ); this->has...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,896
void ValueChunk::changesAndSize( RIFF_MetaHandler* handler ) { if ( this->newValue.size() != this->oldValue.size() ) { this->hasChange = true; } else if ( strncmp ( this->oldValue.c_str(), this->newValue.c_str(), this->newValue.size() ) != 0 ) { this->hasChange = true; } }
DoS Overflow
0
void ValueChunk::changesAndSize( RIFF_MetaHandler* handler ) { if ( this->newValue.size() != this->oldValue.size() ) { this->hasChange = true; } else if ( strncmp ( this->oldValue.c_str(), this->newValue.c_str(), this->newValue.size() ) != 0 ) { this->hasChange = true; } }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,897
void JunkChunk::changesAndSize( RIFF_MetaHandler* handler ) { this->newSize = this->oldSize; // optimization at a later stage XMP_Validate( this->newSize <= 0xFFFFFFFFLL, "no single chunk may be above 4 GB", kXMPErr_InternalFailure ); if ( this->id == kChunk_JUNQ ) this->hasChange = true; // Force ID change to JUNK....
DoS Overflow
0
void JunkChunk::changesAndSize( RIFF_MetaHandler* handler ) { this->newSize = this->oldSize; // optimization at a later stage XMP_Validate( this->newSize <= 0xFFFFFFFFLL, "no single chunk may be above 4 GB", kXMPErr_InternalFailure ); if ( this->id == kChunk_JUNQ ) this->hasChange = true; // Force ID change to JUNK....
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,898
chunkVectIter ContainerChunk::getChild( Chunk* needle ) { chunkVectIter iter; for( iter = this->children.begin(); iter != this->children.end(); iter++ ) { Chunk* temp1 = *iter; Chunk* temp2 = needle; if ( (*iter) == needle ) return iter; } return this->children.end(); }
DoS Overflow
0
chunkVectIter ContainerChunk::getChild( Chunk* needle ) { chunkVectIter iter; for( iter = this->children.begin(); iter != this->children.end(); iter++ ) { Chunk* temp1 = *iter; Chunk* temp2 = needle; if ( (*iter) == needle ) return iter; } return this->children.end(); }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,899
void ContainerChunk::release() { Chunk* curChunk; while( ! this->children.empty() ) { curChunk = this->children.back(); delete curChunk; this->children.pop_back(); } }
DoS Overflow
0
void ContainerChunk::release() { Chunk* curChunk; while( ! this->children.empty() ) { curChunk = this->children.back(); delete curChunk; this->children.pop_back(); } }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null