Detect RIFF files with invalid chunk sizes

The bug report has a WAVE file with zero-sized 'data' chunk, which causes
TagLib to iterate over the file, 8 bytes in each iteration. The new code
adds a check for the chunk name, which forces it to mark the file as
invalid if the chunk name doesn't contain ASCII characters.

https://bugs.kde.org/show_bug.cgi?id=283412
This commit is contained in:
Lukáš Lalinský
2011-10-08 18:41:15 +02:00
parent 294cb22241
commit f59c3b67aa
5 changed files with 39 additions and 1 deletions

Binary file not shown.