#88 ImplAAFSourceReference::GetChannelIDs() does not work

closed-fixed
None
5
2005-04-25
2005-04-22
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
     
  • Stuart Cunningham

    • status: open --> closed
     
  • Stuart Cunningham

    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

     
  • Stuart Cunningham

    • status: closed --> closed-fixed