TagLib::ASF::Tag::addAttribute possible memory leakage?

Anthony Liu quadamage at gmail.com
Thu Oct 7 08:32:02 CEST 2010


Hi to all.

It appeals that TagLib::ASF::Tag::addAttribute has a memory leakage bug,

ASF::File f( filename, false );

ASF::Tag *asfTag = f.tag();


> ASF::Attribute atb( ByteVector( 10000000, 0 ) );

asfTag->addAttribute( "Test",  atb );

        f.save();



The above code will cause memory leakage, if you increase the size of the
asf attribute, things get even worst.

-- 
Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20101007/20ce7aaf/attachment.htm 


More information about the taglib-devel mailing list