File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-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+ with atheris .instrument_imports ():
20+ import sys
21+ import fuzzers
2122
2223
2324def TestOneInput (data ):
@@ -26,13 +27,12 @@ def TestOneInput(data):
2627 except Exception :
2728 # We're catching all exceptions because Pillow's exceptions are
2829 # directly inheriting from Exception.
29- return
30- return
30+ pass
3131
3232
3333def main ():
3434 fuzzers .enable_decompressionbomb_error ()
35- atheris .Setup (sys .argv , TestOneInput , enable_python_coverage = True )
35+ atheris .Setup (sys .argv , TestOneInput )
3636 atheris .Fuzz ()
3737 fuzzers .disable_decompressionbomb_error ()
3838
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+ with atheris .instrument_imports ():
20+ import sys
21+ import fuzzers
2122
2223
2324def TestOneInput (data ):
@@ -26,13 +27,12 @@ def TestOneInput(data):
2627 except Exception :
2728 # We're catching all exceptions because Pillow's exceptions are
2829 # directly inheriting from Exception.
29- return
30- return
30+ pass
3131
3232
3333def main ():
3434 fuzzers .enable_decompressionbomb_error ()
35- atheris .Setup (sys .argv , TestOneInput , enable_python_coverage = True )
35+ atheris .Setup (sys .argv , TestOneInput )
3636 atheris .Fuzz ()
3737 fuzzers .disable_decompressionbomb_error ()
3838
You can’t perform that action at this time.
0 commit comments