mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-16 11:55:27 -05:00
1d1efa6c6a
* gnu/packages/patches/pulseaudio-CVE-2014-397.patch: New file. * gnu/packages/patches/pulseaudio-fix-mult-test.patch: New file. * gnu-system.am (dist_patch_DATA): Add them. * gnu/packages/pulseaudio.scm (pulseaudio): Add patches.
16 lines
515 B
Diff
16 lines
515 B
Diff
Avoid signed overflow during mult-s16-test which intermittently
|
|
failed.
|
|
|
|
Patch by Mark H Weaver <mhw@netris.org>.
|
|
|
|
--- pulseaudio-5.0/src/tests/mult-s16-test.c.orig 2014-01-23 13:57:55.000000000 -0500
|
|
+++ pulseaudio-5.0/src/tests/mult-s16-test.c 2014-10-24 03:13:46.464661815 -0400
|
|
@@ -55,7 +55,7 @@
|
|
START_TEST (mult_s16_test) {
|
|
int16_t samples[SAMPLES];
|
|
int32_t volumes[SAMPLES];
|
|
- int32_t sum1 = 0, sum2 = 0;
|
|
+ uint32_t sum1 = 0, sum2 = 0;
|
|
int i;
|
|
|
|
pa_random(samples, sizeof(samples));
|