1
- { stdenv , fetchurl , alsaLib , AudioUnit , CoreServices } :
1
+ { stdenv , fetchurl , fetchpatch , alsaLib , AudioUnit , CoreServices } :
2
+
3
+ let
4
+
5
+ fetchDebianPatch = { name , debname , sha256 } :
6
+ fetchpatch {
7
+ inherit sha256 name ;
8
+ url = "https://anonscm.debian.org/cgit/pkg-multimedia/audiofile.git/plain/debian/patches/${ debname } ?h=debian/0.3.6-4" ;
9
+ } ;
10
+
11
+ in
2
12
3
13
stdenv . mkDerivation rec {
4
14
name = "audiofile-0.3.6" ;
@@ -15,7 +25,46 @@ stdenv.mkDerivation rec {
15
25
sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind" ;
16
26
} ;
17
27
18
- patches = [ ./CVE-2015-7747.patch ./gcc-6.patch ] ;
28
+ patches = [
29
+ ./gcc-6.patch
30
+ ./CVE-2015-7747.patch
31
+
32
+ ( fetchDebianPatch {
33
+ name = "CVE-2017-6829.patch" ;
34
+ debname = "04_clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch" ;
35
+ sha256 = "04qxl51i64c53v69q2kx61qdq474f4vapk8rq97cipj7yrar392m" ;
36
+ } )
37
+ ( fetchDebianPatch {
38
+ name = "CVE-2017-6827+CVE-2017-6828+CVE-2017-6832+CVE-2017-6835+CVE-2017-6837.patch" ;
39
+ debname = "05_Always-check-the-number-of-coefficients.patch" ;
40
+ sha256 = "1ih03kfkabffi6ymp6832q470i28rsds78941vzqlshnqjb2nnxw" ;
41
+ } )
42
+ ( fetchDebianPatch {
43
+ name = "CVE-2017-6839.patch" ;
44
+ debname = "06_Check-for-multiplication-overflow-in-MSADPCM-decodeSam.patch" ;
45
+ sha256 = "0a8s2z8rljlj03p7l1is9s4fml8vyzvyvfrh1m6xj5a8vbi635d0" ;
46
+ } )
47
+ ( fetchDebianPatch {
48
+ name = "CVE-2017-6830+CVE-2017-6834+CVE-2017-6836+CVE-2017-6838.patch" ;
49
+ debname = "07_Check-for-multiplication-overflow-in-sfconvert.patch" ;
50
+ sha256 = "0rfba8rkasl5ycvc0kqlzinkl3rvyrrjvjhpc45h423wmjk2za2l" ;
51
+ } )
52
+ ( fetchDebianPatch {
53
+ name = "audiofile-fix-multiplyCheckOverflow-signature.patch" ;
54
+ debname = "08_Fix-signature-of-multiplyCheckOverflow.-It-returns-a-b.patch" ;
55
+ sha256 = "032p5jqp7q7jgc5axdnazz00zm7hd26z6m5j55ifs0sykr5lwldb" ;
56
+ } )
57
+ ( fetchDebianPatch {
58
+ name = "CVE-2017-6831.patch" ;
59
+ debname = "09_Actually-fail-when-error-occurs-in-parseFormat.patch" ;
60
+ sha256 = "0csikmj8cbiy6cigg0rmh67jrr0sgm56dfrnrxnac3m9635nxlac" ;
61
+ } )
62
+ ( fetchDebianPatch {
63
+ name = "CVE-2017-6833.patch" ;
64
+ debname = "10_Check-for-division-by-zero-in-BlockCodec-runPull.patch" ;
65
+ sha256 = "1rlislkjawq98bbcf1dgl741zd508wwsg85r37ca7pfdf6wgl6z7" ;
66
+ } )
67
+ ] ;
19
68
20
69
meta = with stdenv . lib ; {
21
70
description = "Library for reading and writing audio files in various formats" ;
0 commit comments