File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed
Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- import sys
1817
19- import atheris_no_libfuzzer as atheris
20- import fuzzers
18+ import atheris
19+
20+ with atheris .instrument_imports ():
21+ import sys
22+
23+ import fuzzers
2124
2225
2326def TestOneInput (data ):
@@ -26,13 +29,12 @@ def TestOneInput(data):
2629 except Exception :
2730 # We're catching all exceptions because Pillow's exceptions are
2831 # directly inheriting from Exception.
29- return
30- return
32+ pass
3133
3234
3335def main ():
3436 fuzzers .enable_decompressionbomb_error ()
35- atheris .Setup (sys .argv , TestOneInput , enable_python_coverage = True )
37+ atheris .Setup (sys .argv , TestOneInput )
3638 atheris .Fuzz ()
3739 fuzzers .disable_decompressionbomb_error ()
3840
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- import sys
1817
19- import atheris_no_libfuzzer as atheris
20- import fuzzers
18+ import atheris
19+
20+ with atheris .instrument_imports ():
21+ import sys
22+
23+ import fuzzers
2124
2225
2326def TestOneInput (data ):
@@ -26,13 +29,12 @@ def TestOneInput(data):
2629 except Exception :
2730 # We're catching all exceptions because Pillow's exceptions are
2831 # directly inheriting from Exception.
29- return
30- return
32+ pass
3133
3234
3335def main ():
3436 fuzzers .enable_decompressionbomb_error ()
35- atheris .Setup (sys .argv , TestOneInput , enable_python_coverage = True )
37+ atheris .Setup (sys .argv , TestOneInput )
3638 atheris .Fuzz ()
3739 fuzzers .disable_decompressionbomb_error ()
3840
You can’t perform that action at this time.
0 commit comments