d82ffd35d1
- Add check for invalid input sample rate - Avoid malformed wav causing floating point exception (integer divide by zero) - Fix warning on 64 bit machines. Explicitely set variables as unsigned ints. - Enable functions with SSE instructions to maintain their own properly aligned stack - Fix decision if sample rate ratio is an integer value or not - run autoreconf, set GTK_CFLAGS - Add patch to remove ansi2knr instead of using sed - Redux the conditionals for not building gtk1 anywhere anymore - Fix logical issue in hvogel's fix - Fix the conditional building of gtk1 binaries - Fix pkgconfig(gtk+-2.0) for >= 11.4 - Fix bug reporting link - BuildRequires nasm only in x86-32 (there is no assembly available for other archs) - Stop BuildRequiring flac-devel, it's not used - Remove autoreconf call and related BuildRequires and patches - Remove old compatibility Provides - Run spec-cleaner - Removed all patches (unneeded) - Replace some documentation and let the build system install its own - update to 3.99.5: fixed build on 12.2 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lame?expand=0&rev=1
18 lines
691 B
Diff
18 lines
691 B
Diff
Description: Avoid malformed wav causing floating point exception (integer divide by zero)
|
|
Author: Fabian Greffrath <fabian+debian@greffrath.com>
|
|
Bug-Debian: https://bugs.debian.org/777159
|
|
|
|
--- a/frontend/get_audio.c
|
|
+++ b/frontend/get_audio.c
|
|
@@ -1448,6 +1448,10 @@ parse_wave_header(lame_global_flags * gf
|
|
else {
|
|
(void) lame_set_in_samplerate(gfp, global_reader.input_samplerate);
|
|
}
|
|
+ /* avoid division by zero */
|
|
+ if (bits_per_sample < 1)
|
|
+ return -1;
|
|
+
|
|
global. pcmbitwidth = bits_per_sample;
|
|
global. pcm_is_unsigned_8bit = 1;
|
|
global. pcm_is_ieee_float = (format_tag == WAVE_FORMAT_IEEE_FLOAT ? 1 : 0);
|