Skip to content

Commit 1eb584f

Browse files
committed
speex: patch zero division vector in wave header parser
Fixes: CVE-2020-23903
1 parent 0bb8786 commit 1eb584f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

pkgs/development/libraries/speex/default.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fftw, speexdsp }:
1+
{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, pkg-config, fftw, speexdsp }:
22

33
stdenv.mkDerivation rec {
44
pname = "speex";
@@ -13,6 +13,14 @@ stdenv.mkDerivation rec {
1313
sed -i '/AC_CONFIG_MACRO_DIR/i PKG_PROG_PKG_CONFIG' configure.ac
1414
'';
1515

16+
patches = [
17+
(fetchpatch {
18+
name = "CVE-2020-23903.patch";
19+
url = "https://github.com/xiph/speex/commit/870ff845b32f314aec0036641ffe18aba4916887.patch";
20+
sha256 = "sha256-uEMDhDTw/LIWNPPCXW6kF+udBmNO88G/jJTojAA9fs8=";
21+
})
22+
];
23+
1624
outputs = [ "out" "dev" "doc" ];
1725

1826
nativeBuildInputs = [ autoreconfHook pkg-config ];

0 commit comments

Comments
 (0)