Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commitc84e643
committed
Replace the suboptimal fuzz_tree harness with a better alternative
As discussed in the initial fuzzing integration PR[^1], `fuzz_tree.py`'simplementation was not ideal in terms of coverage and its reading/writing tohard-coded paths inside `/tmp` was problematic as (among other concerns), itcauses intermittent crashes on ClusterFuzz[^2] when multiple workers executethe test at the same time on the same machine.The changes here replace `fuzz_tree.py` completely with a completely new`fuzz_repo.py` fuzz target which:- Uses `tempfile.TemporaryDirectory()` to safely manage tmpdir creation and tear down, including during multi-worker execution runs.- Retains the same feature coverage as `fuzz_tree.py`, but it also adds considerably more from much smaller data inputs and with less memory consumed (and it doesn't even have a seed corpus or target specific dictionary yet.)- Can likely be improved further in the future by exercising additional features of `Repo` to the harness.Because `fuzz_tree.py` was removed and `fuzz_repo.py` was not derived from it,the Apache License call outs in the docs were also updated as they only apply tothe singe `fuzz_config.py` file now.[^1]:#1901 (comment)[^2]:https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=683551 parent797009d commitc84e643
File tree
5 files changed
+57
-90
lines changed- fuzzing
- dictionaries
- fuzz-targets
5 files changed
+57
-90
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
243 |
| - | |
244 |
| - | |
| 243 | + | |
| 244 | + | |
245 | 245 |
| |
246 | 246 |
| |
247 | 247 |
|
Lines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
225 | 225 |
| |
226 | 226 |
| |
227 | 227 |
| |
228 |
| - | |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
|
Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 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 | + |
Lines changed: 0 additions & 67 deletions
This file was deleted.
0 commit comments
Comments
(0)