diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-16 05:22:34 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-16 07:03:25 -0300 |
commit | 95942be17b87677d6a63df31d34f02cf786f29c0 (patch) | |
tree | 38d66351a5e91ff0d2e2c6962b4a8a4a1fefe8e0 /community/sox/CVE-2019-8357.patch | |
parent | 2c6453a2a13b679695f092e59ee53e7cedafdf90 (diff) | |
download | aports-95942be17b87677d6a63df31d34f02cf786f29c0.tar.bz2 aports-95942be17b87677d6a63df31d34f02cf786f29c0.tar.xz |
community/sox: backport fix for CVEs
Diffstat (limited to 'community/sox/CVE-2019-8357.patch')
-rw-r--r-- | community/sox/CVE-2019-8357.patch | 12 |
1 files changed, 12 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..6f0bf72e53 --- /dev/null +++ b/community/sox/CVE-2019-8357.patch @@ -0,0 +1,12 @@ +--- a/src/effects_i_dsp.c ++++ b/src/effects_i_dsp.c +@@ -362,6 +362,9 @@ + 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; |