Commit 478c6cb
committed
Narrow fuzz-step-finder exception handling to std::regex_error
catch (const std::exception&) silently swallowed std::bad_alloc and
any other unexpected exception as if it were the expected, benign
std::regex_error from a malformed pattern. Only std::regex_error is
actually expected here; anything else (e.g. bad_alloc from runaway
allocation on a pathological pattern) should propagate to libFuzzer
instead of being reported as a successful run.1 parent 469c075 commit 478c6cb
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
0 commit comments