Possible Bug in tbytevector

Michael Pyne michael.pyne at kdemail.net
Thu Nov 8 23:41:54 CET 2007


On Thursday 08 November 2007, Rich Collins wrote:
> I ran into a bug copying the tags from an mp3 to an ogg when the
> comment tag was empty.
>
> void ByteVector::setData(const char *data, uint length)
> {
>    detach();
>
>    resize(length);
>
>    ::memcpy(DATA(d), data, length);
>
> }
>
> data was an empty string and length was 0.
>
> DATA(d) is expanded to &(d->data[0]), but d->data is empty

That was fixed about a month ago, at revision 717984 
(http://bugs.kde.org/show_bug.cgi?id=150250).

Regards,
 - Michael Pyne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/taglib-devel/attachments/20071108/dd8a6b20/attachment.pgp 


More information about the taglib-devel mailing list