-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
186 lines (163 loc) · 4.63 KB
/
docker-compose.yml
File metadata and controls
186 lines (163 loc) · 4.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
version: '2'
## Build: docker-compose build <service>
## Run: docker-compose run <service>
## Note: Change volumes and command to match your system.
services:
## libfuzzer base image
libfuzzer-base:
build: ./base/libfuzzer-base
image: ouspg/libfuzzer-base
## ImageMagick stub, with automatic crash-repro minimizer
ImageMagick:
build: ./stubs/ImageMagick
image: ouspg/libfuzzer-imagemagick
volumes:
- ~/results/:/srv/fuzzer/results/
- ~/samples/:/srv/fuzzer/samples/
mem_limit: 4g
shm_size: 512M
environment:
MINIMIZE: "true"
entrypoint: '/src/scripts/fuzz.sh'
command: [
'/src/ImageMagick/ImageMagick-fuzzer',
#'-rss_limit_mb=4096',
'-detect_leaks=0',
'-exact_artifact_path=/dev/shm/repro-file',
'-max_len=1000',
'-use_counters=1',
'-max_total_time=3600',
'/srv/fuzzer/samples/libfuzzer-imagemagick'
]
## libxml2 stub
libxml2:
build: ./stubs/libxml2
image: ouspg/libfuzzer-libxml2
shm_size: 512M
mem_limit: 4g
volumes:
- ~/results/:/srv/fuzzer/results/
- ~/samples/:/srv/fuzzer/samples/
environment:
LD_LIBRARY_PATH: "/src/libxml2/.libs/"
command: [
'/src/libxml2/libxml2-fuzzer',
'-rss_limit_mb=4096',
'-detect_leaks=0',
'-exact_artifact_path=/dev/shm/repro-file',
'-max_len=5000',
'-use_counters=1',
'-max_total_time=600',
'/srv/fuzzer/samples/libfuzzer-libxml2/'
]
## libxslt
libxslt:
build: ./stubs/libxslt
image: ouspg/libfuzzer-libxslt
shm_size: 512M
mem_limit: 4g
volumes:
- ~/results/:/srv/fuzzer/results/
- ~/samples/:/srv/fuzzer/samples/
environment:
LD_LIBRARY_PATH: "/src/libxslt/libxslt/.libs/"
command: [
'/src/libxslt/libxslt-fuzzer',
'-rss_limit_mb=4096',
'-detect_leaks=0',
'-exact_artifact_path=/dev/shm/repro-file',
'-max_len=5000',
'-use_counters=1',
'-max_total_time=600',
'/srv/fuzzer/samples/libfuzzer-libxslt'
]
## libav stub
libav:
build: ./stubs/libav
image: ouspg/libfuzzer-libav
volumes:
- ~/results/:/srv/fuzzer/results/
- ~/samples/:/srv/fuzzer/samples/
mem_limit: 4g
shm_size: 512M
entrypoint: '/src/scripts/fuzz.sh'
command: [
'/src/libav/libav-fuzzer',
'-rss_limit_mb=4096',
'-detect_leaks=0',
'-exact_artifact_path=/dev/shm/repro-file',
'-max_len=1000',
'-timeout=5',
'-use_counters=1',
'-max_total_time=3600',
'/srv/fuzzer/samples/libfuzzer-libav'
]
## lua stub
lua:
build: ./stubs/lua
image: ouspg/libfuzzer-lua
volumes:
- ~/results/:/srv/fuzzer/results/
- ~/samples/:/srv/fuzzer/samples/
mem_limit: 4g
shm_size: 512M
entrypoint: '/src/scripts/fuzz.sh'
command: [
'/lua-fuzzer',
'-rss_limit_mb=4096',
'-detect_leaks=0',
'-exact_artifact_path=/dev/shm/repro-file',
'-max_len=1000',
'-timeout=5',
'-use_counters=1',
'-max_total_time=3600',
'/srv/fuzzer/samples/libfuzzer-lua'
]
## libmad stub
libmad:
build: ./stubs/libmad
image: ouspg/libfuzzer-libmad
volumes:
- ~/results/:/srv/fuzzer/results/
- ~/samples/:/srv/fuzzer/samples/
mem_limit: 4g
shm_size: 512M
entrypoint: '/src/scripts/fuzz.sh'
command: [
'/src/libmad-0.15.1b/libmad-fuzzer',
'-rss_limit_mb=4096',
'-detect_leaks=0',
'-exact_artifact_path=/dev/shm/repro-file',
'-max_len=1000',
'-use_counters=1',
'-max_total_time=3600',
'/srv/fuzzer/samples/libfuzzer-libmad'
]
## zlib stub
zlib:
build: ./stubs/zlib
image: ouspg/libfuzzer-zlib
volumes:
- ~/results/:/srv/fuzzer/results/
- ~/samples/:/srv/fuzzer/samples/
mem_limit: 4g
shm_size: 512M
entrypoint: '/src/scripts/fuzz.sh'
command: [
'/src/zlib/zlib-fuzzer',
'-rss_limit_mb=4096',
'-detect_leaks=0',
'-exact_artifact_path=/dev/shm/repro-file',
'-max_len=1000',
'-use_counters=1',
'-max_total_time=3600',
'/srv/fuzzer/samples/libfuzzer-zlib'
]
## Haskell base image
libfuzzer-base-haskell:
build: ./base/libfuzzer-base-haskell
image: ouspg/libfuzzer-base-haskell
## Haskell stub
haskell-x509:
build: ./stubs/haskell-x509
image: ouspg/libfuzzer-haskell-x509