/*
User defined data.
*/
- profile=AcquireStringInfo(cin.file.user_length);
+ profile=BlobToStringInfo((const void *) NULL,cin.file.user_length);
+ if (profile == (StringInfo *) NULL)
+ ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
offset+=ReadBlob(image,GetStringInfoLength(profile),
GetStringInfoDatum(profile));
(void) SetImageProfile(image,"dpx:user.data",profile);
StringInfo
*profile;
- profile=AcquireStringInfo(dpx.file.user_size-sizeof(dpx.user.id));
+ profile=BlobToStringInfo((const void *) NULL,
+ dpx.file.user_size-sizeof(dpx.user.id));
+ if (profile == (StringInfo *) NULL)
+ ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
offset+=ReadBlob(image,GetStringInfoLength(profile),
GetStringInfoDatum(profile));
(void) SetImageProfile(image,"dpx",profile);