Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#88 ImplAAFSourceReference::GetChannelIDs() does not work

closed-fixed
None
5
2005-04-25
2005-04-22
Peter E. Lee
No

As with ImplAAFSourceReference::SetChannelIDs(),
ImplAAFSourceReference::GetChannelIDs() passes the
number of elements when it should be passing a byte
count. Specifically, it passes numberElements to
_channelIDs.copyToBuffer() instead of (numberElements *
sizeof(aafUInt32)).

Discussion

  • Phil Tudor
    Phil Tudor
    2005-04-25

    • assigned_to: nobody --> stuart_hc
     
    • status: open --> closed
     
  • Logged In: YES
    user_id=692703

    Confirmed as a bug in ImplAAFSourceReference.cpp. The
    numberElements parameter was being treated as a size
    internally instead of being multiplied by element-size to
    calculate array sizes.
    Also affected GetMonoSourceSlotIDs() in same fashion.

    Fixed in revision 1.27 of ImplAAFSourceReference.cpp

     
    • status: closed --> closed-fixed