bug reading certain wav file

Jens Nachtigall nachtigall at web.de
Wed Oct 5 19:17:33 UTC 2011


Am 05.10.2011 20:40, schrieb Lukáš Lalinský:
> Sorry, I forgot to CC you.
> 
> 2011/10/5 Lukáš Lalinský <lalinsky at gmail.com>:
>> On Wed, Oct 5, 2011 at 3:44 PM, Jens Nachtigall <nachtigall at web.de> wrote:
>>> This wav file causes tagreader to allocate about 2GB of memory until it
>>> causes a SIGABRT. Any solution / direction for debuggin? Should I open a
>>> bug?
>>
>> The file contains zero-sized data chunk, which causes TagLib to end up
>> in an infinite loop. I don't think it can reliably write tags to it,
>> so I'll just make it mark the file as invalid.

Yes, simply handling it like any other invalid file would be good.
Sorry, I am only reading this now, so I have opened a bug after doing
some more debugging:
https://bugs.kde.org/show_bug.cgi?id=283412
The problem is an ininite loop in void RIFF::File::read() because
    uint chunkSize = readBlock(4).toUInt(bigEndian);
is always zero.


jens


More information about the taglib-devel mailing list