Bug#778529: lame: fill_buffer_resample segmentation fault

Fabian Greffrath fabian at greffrath.com
Tue Feb 17 08:11:07 UTC 2015


Hi Henri,

thank you for submitting this bug report!

Am Montag, den 16.02.2015, 12:45 +0200 schrieb Henri Salo: 
> Error reading input file
> lame: util.c:595: fill_buffer_resample: Assertion `fabs(offset) <= .501' failed.

This seems to be the inverse problem this time: The samplerate in the
fuzzed pseudo-WAV header is simply much too high. If I extend Maks'
patch to also check for "if (gfp->samplerate_in > MAX_SAMP_FREQ)" then
it fails gracefully instead of crashing. However, MAX_SAMP_FREQ is
currently defined to 48000 and I am not sure if this means maximum input
or output samplerate supported by lame. Shouldn't lame be able to encode
files with 96kHz samplerate into MP3 by reducing the samplerate to 48kHz
in the process?

Does anyone know the highest reasonable input samplerate supported by
lame?

Cheers,

Fabian



More information about the pkg-multimedia-maintainers mailing list