Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: FLAC bug: wave-parser broken for 24-bit / mono (Read 2420 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

FLAC bug: wave-parser broken for 24-bit / mono

Hi,

I found a serious problem with flac wave-parser:

In case you try to compress a 24-bit mono (probably all files with odd number of channels) wave file (packed) with an odd length (in samples), resulting in an odd length of the audio data chunk (3*length_in_samples) flac won´t read the chunks after the audio chunk correctly, because it´s one byte out-of-sync, it skips the first byte and starts reading the next chunk like "ext\" (the last byte from length) instead of "bext". Of course it also reads the wrong length now and it says wave file is broken.

Encoding without "--keep-foreign-metadata" results just in wrong messages, but with this option encoding will fail. Fortunately flac does not seem to create broken files, either the sub-chunks are ignored or it fails.

Regards,
S_O