|
|
|
@ -83,9 +83,13 @@ static const char * kTenSpaces = " ";
|
|
|
|
|
|
|
|
|
|
#define OutProcULong(num) { snprintf ( buffer, sizeof(buffer), "%lu", (num) ); /* AUDIT: Using sizeof for snprintf length is safe */ \
|
|
|
|
|
status = (*outProc) ( refCon, buffer, strlen(buffer) ); if ( status != 0 ) goto EXIT; }
|
|
|
|
|
|
|
|
|
|
#ifdef __APPLE__
|
|
|
|
|
#define OutProcHexInt(num) { snprintf ( buffer, sizeof(buffer), "%X", (num) ); /* AUDIT: Using sizeof for snprintf length is safe */ \
|
|
|
|
|
status = (*outProc) ( refCon, buffer, strlen(buffer) ); if ( status != 0 ) goto EXIT; }
|
|
|
|
|
#else
|
|
|
|
|
#define OutProcHexInt(num) { snprintf ( buffer, sizeof(buffer), "%lX", (num) ); /* AUDIT: Using sizeof for snprintf length is safe */ \
|
|
|
|
|
status = (*outProc) ( refCon, buffer, strlen(buffer) ); if ( status != 0 ) goto EXIT; }
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define OutProcHexByte(num) { snprintf ( buffer, sizeof(buffer), "%.2X", (num) ); /* AUDIT: Using sizeof for snprintf length is safe */ \
|
|
|
|
|
status = (*outProc) ( refCon, buffer, strlen(buffer) ); if ( status != 0 ) goto EXIT; }
|
|
|
|
@ -739,7 +743,7 @@ XMPMeta::Initialize()
|
|
|
|
|
XMP_Assert ( sizeof(XMP_Uns64) == 8 );
|
|
|
|
|
|
|
|
|
|
XMP_Assert ( sizeof(XMP_OptionBits) == 4 ); // Check that option masking work on all 32 bits.
|
|
|
|
|
XMP_OptionBits flag = ~0UL;
|
|
|
|
|
XMP_OptionBits flag = ~0;
|
|
|
|
|
|
|
|
|
|
XMP_Assert ( flag == (XMP_OptionBits)(-1L) );
|
|
|
|
|
XMP_Assert ( (flag ^ kXMP_PropHasLang) == 0xFFFFFFBFUL );
|
|
|
|
|