diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-24 04:01:30 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-24 04:30:45 -0300 |
commit | 5402121572105dacecfadf254239c4aafed6dbae (patch) | |
tree | 952de90f4358f4bbba6fa91a25d3ecd34bef8965 /community/sox/CVE-2019-8357.patch | |
parent | 8fe1e872abac8f72643a642a9aba31a7f1a1e4dc (diff) | |
download | aports-5402121572105dacecfadf254239c4aafed6dbae.tar.bz2 aports-5402121572105dacecfadf254239c4aafed6dbae.tar.xz |
community/sox: backport a few CVEs
Thanks to Arch Linux for doing most of the hard work
resolves #10522
Diffstat (limited to 'community/sox/CVE-2019-8357.patch')
-rw-r--r-- | community/sox/CVE-2019-8357.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/community/sox/CVE-2019-8357.patch b/community/sox/CVE-2019-8357.patch new file mode 100644 index 0000000000..2919657ba4 --- /dev/null +++ b/community/sox/CVE-2019-8357.patch @@ -0,0 +1,29 @@ +From 2ce02fea7b350de9ddfbcf542ba4dd59a8ab255b Mon Sep 17 00:00:00 2001 +From: Mans Rullgard <mans@mansr.com> +Date: Wed, 24 Apr 2019 15:08:51 +0100 +Subject: [PATCH] fix possible null pointer deref in lsx_make_lpf() + (CVE-2019-8357) + +If the buffer allocation fails, return NULL. +--- + src/effects_i_dsp.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/effects_i_dsp.c b/src/effects_i_dsp.c +index e32dfa05..88b1b390 100644 +--- a/src/effects_i_dsp.c ++++ b/src/effects_i_dsp.c +@@ -362,6 +362,9 @@ double * lsx_make_lpf(int num_taps, double Fc, double beta, double rho, + assert(Fc >= 0 && Fc <= 1); + lsx_debug("make_lpf(n=%i Fc=%.7g β=%g ρ=%g dc-norm=%i scale=%g)", num_taps, Fc, beta, rho, dc_norm, scale); + ++ if (!h) ++ return NULL; ++ + for (i = 0; i <= m / 2; ++i) { + double z = i - .5 * m, x = z * M_PI, y = z * mult1; + h[i] = x? sin(Fc * x) / x : Fc; +-- +2.22.0 + + |