06-17-2008, 10:34 PM
In the OpenMaxAL specs ver 1.0 , the XAMetadataInfo structure on page 358 has the data array as fixed at lenght of 1. But the metadata extracted like song-title,album artist name etc will exceed this . All MetadataExtractorItf APIs have a pointer to this structure as return value. For eg: - GetValue() fills out this structure and fills the data beyond the size of the structure but it is a fixed array data, populating locations beyond this limit will cause memory overwrites and leakages. Can we extend the data array size in the XAMetadataInfo structure or should it be a pointer to a string(char)?