taglib-devel Digest, Vol 76, Issue 1
巫山霏云
freefcw at gmail.com
Fri Oct 8 04:47:25 CEST 2010
Oh,When I use ASF:File, it memory leak 2
Valgrind show the memory leak at
TagLib::ASF::File::HeaderExtensionObject::parse(TagLib::ASF::File*, unsigned
int)
I was found other bug in MPEG, and busy doing it
Now I have the problem on it, memory leak:(
On 7 October 2010 18:00, <taglib-devel-request at kde.org> wrote:
> Send taglib-devel mailing list submissions to
> taglib-devel at kde.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mail.kde.org/mailman/listinfo/taglib-devel
> or, via email, send a message with subject or body 'help' to
> taglib-devel-request at kde.org
>
> You can reach the person managing the list at
> taglib-devel-owner at kde.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of taglib-devel digest..."
>
>
> Today's Topics:
>
> 1. TagLib::ASF::Tag::addAttribute possible memory leakage?
> (Anthony Liu)
> 2. Re: TagLib::ASF::Tag::addAttribute possible memory leakage?
> (Luk?? Lalinsk?)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 7 Oct 2010 14:32:02 +0800
> From: Anthony Liu <quadamage at gmail.com>
> Subject: TagLib::ASF::Tag::addAttribute possible memory leakage?
> To: taglib-devel at kde.org
> Message-ID:
> <AANLkTimJxthgeFDViz3+fCZ0Tq4D-cEr1z3gyffJqWnY at mail.gmail.com<AANLkTimJxthgeFDViz3%2BfCZ0Tq4D-cEr1z3gyffJqWnY at mail.gmail.com>
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Thu, 7 Oct 2010 10:23:14 +0200
> From: Luk?? Lalinsk? <lalinsky at gmail.com>
> Subject: Re: TagLib::ASF::Tag::addAttribute possible memory leakage?
> To: taglib-devel at kde.org
> Message-ID:
> <AANLkTimQCWvtAtuZeoZ8D+G6YfjeHpQpK0p2YvOQJiQ2 at mail.gmail.com<AANLkTimQCWvtAtuZeoZ8D%2BG6YfjeHpQpK0p2YvOQJiQ2 at mail.gmail.com>
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Thu, Oct 7, 2010 at 8:32 AM, Anthony Liu <quadamage at gmail.com> wrote:
> > 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.
>
> Can you please be more specific? Valgrind on examples/tagreader
> reports no real memory leaks when running on a WMA file. Everything in
> ASF::Attribute is reference-counted, it will get deleted when the last
> instance runs out of context.
>
> Lukas
>
>
> ------------------------------
>
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel
>
>
> End of taglib-devel Digest, Vol 76, Issue 1
> *******************************************
>
--
Blog
http://b.freefcw.com
Twitter
http://twitter.com/freefcw
巫山霏云
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20101008/f2c5d4db/attachment.html
More information about the taglib-devel
mailing list