Commit 7d244bf
scripts: fuzz: add optional libFuzzer dictionary (-d) option
Add a -d <dfile> option to fuzz.sh that forwards -dict=<dfile> to the
libFuzzer executable. A dictionary of known IPC command dwords and enum
constants helps the mutator reach deeper dispatch paths that random
mutation rarely hits.
The option is deliberately non-fatal: a missing or empty dictionary file
only emits a warning and the fuzzer runs without it. The dictionary is a
pure enhancement and must never block a fuzzing run, for example when its
generator fails after an unrelated header change in CI.
fuzz.sh stays agnostic of how the dictionary is produced. The caller is
responsible for generating and passing the file.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent d9f9ba1 commit 7d244bf
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | | - | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
172 | 188 | | |
173 | 189 | | |
174 | 190 | | |
175 | 191 | | |
176 | | - | |
| 192 | + | |
177 | 193 | | |
178 | 194 | | |
179 | 195 | | |
| |||
0 commit comments