Divide by zero in RIFF::WAV::Properties::read

James Burton burtonjamesr at googlemail.com
Sun Sep 18 12:22:02 UTC 2011

Hello all,

There is a divide-by-zero crash in RIFF::WAV::Properties::read() if the sample width in the file is less than 8. I've attached an example file and there are also real files available at https://secure.wikimedia.org/wikipedia/en/wiki/Wave_file that have samples smaller than 8 bits.

Fix is here: https://github.com/jburton/taglib/commit/f663b2598a71279e8867c8648a4c5d1ef4dca09e

James Burton

-------------- next part --------------
A non-text attachment was scrubbed...
Name: explode.wav
Type: audio/wav
Size: 14744 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20110918/8e99aea8/attachment.bin>

More information about the taglib-devel mailing list