#20 All codec GetCodecDisplayName() implementations are wrong.

open
nobody
None
5
2003-03-14
2003-03-14
Jim Trainor
No

The GetCodecDisplayName() implementation CDCI,
JPEG, WAVE, and AIFC codec all return a truncated
string if the user supplied buffer is too small.

There are two problems with the implementation(s):

i) Assuming truncation is the correct response to the
small buffer, the truncated string will not be properly null
terminated because it is copied with memcpy().

ii) The rest of the SDK returns
AAFRESULT_SMALL_BUF in this situation. The
essence codecs should do the same.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks