[PATCH] weird filename corruption

Alex Merry huntedhacker at tiscali.co.uk
Tue Apr 22 17:39:17 CEST 2008


On Tuesday 22 April 2008 14:48:47 Scott Wheeler wrote:
> Alex Merry wrote:
> > I've been having a bizarre problem where I'd get errors like this:
> >
> > TagLib: Could not open file
> > /home/music/A/Hi-Fi_Serious/11_W.D.y.C.A.I..¡p3
>
> Usually an error like that comes from keeping a pointer to the output of
> c_str() for longer than the lifetime of the std::string it came from.  I
> can't be certain that it's not a TagLib bug, but I suspect the bug is in
> the calling code.  Can you paste it in?  Here's what you're looking for:

Bang on.  Sorry for bothering you with it, and thanks for the pointer.

FYI, it was the Amarok collection scanner 
(http://websvn.kde.org/trunk/extragear/multimedia/amarok/src/collectionscanner/) 
which was using the constData() of a QByteArray after the QByteArray had been 
discarded.

Alex



-- 
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20080422/c4f489bb/attachment.html 


More information about the taglib-devel mailing list