Commit Graph

19 Commits

Author SHA1 Message Date
DavidKorczynski 0cb820e5af
infra: add Python coverage support (#7298)
* infra: add Python coverage support

* update python coverage helper script

* nits

* switch from commands to python

* pin coverage package

* switch to single quote strings throughout

* nit

* fix style

* fix style

* fix ci

* fix ci
2022-04-06 10:31:34 -04:00
DavidKorczynski 164e40cfcc
ujson: fix build (#6498) 2021-09-21 11:08:15 +00:00
jonathanmetzman 50f2fde161
[infra][python] Split out python projects to their own builder. (#6341) 2021-08-30 07:00:26 -07:00
Bitshift 55a5812e8c
Update fuzzers to new Atheris version (#6060)
* Update fuzzers to new Atheris version

* Pin new atheris version

* Change = to ==

* Change path where Atheris fuzzers ld_preload from

* Update hypothesis fuzzer to work with new atheris

* Set version to 2.0.1

* Switch to Atheris 2.0.4

* Correct spelling of pygments_fuzzer decorator

* instrument yaml_reader

* Change to latest Atheris

* Set atheris version to 2.0.6
2021-08-16 08:56:54 -07:00
Fabian Meumertzheim 10e888b561
[all] Make fuzz targets world executable (#5751)
Making fuzz targets only user executable as the root user makes them
non-executable outside the container, e.g. in the oss-fuzz/build/ dir.
2021-05-12 07:03:21 -07:00
DavidKorczynski 08448d8866
ujson: ensure hypothesis fuzzer is copied in (#5277)
The current hypothesis example is not actually copied into the container. This PR fixes it so the fuzzer builds.
2021-03-03 05:24:39 -08:00
Zac Hatfield-Dodds 613d735dc7
Show how to use Hypothesis to fuzz Python code (#4975)
* Show how to use PBT

Hypothesis makes fuzzing complex Python code fun, easy, and a lot more rewarding than constructing all your objects by hand.

* Review updates
2021-01-15 15:33:29 -08:00
Abhishek Arya 0f3d14845e
Fix symbolization for python targets. (#4836) 2020-12-13 15:07:28 -08:00
Abhishek Arya 0dd7aaca32
Fix atheris integration. (#4824) 2020-12-11 11:38:43 -08:00
Abhishek Arya f479148aeb
Force symbolization in atheris python fuzz targets (#4765)
* Add artheris and python lib for stack symbolization in python targets.

* Switch to symbolize=1 in wrapper.
2020-12-02 07:20:10 -08:00
Ian Eldred Pudney 3ef6ac2f17
Make json_differential_fuzzer produce known bugs (#4758) 2020-11-30 13:38:28 -08:00
Abhishek Arya b4dd4b91de
Enable UBSan for python projects. (#4757)
* Enable UBSan for python projects.

* Update docs.
2020-11-30 13:26:33 -08:00
Abhishek Arya f043b86d7f
Leak detection is not expected to work with python targets, disable. (#4751)
Disable leak detection in python target execution wrapper since it
is not expected to work. Also, updated the documentation for python
-only code fuzzers to not use LD_PRELOAD.
2020-11-30 10:42:25 -08:00
Abhishek Arya 84616ae4ce
Fix "exec format error" due to incorrect shebang in python target. (#4746) 2020-11-29 18:49:47 -08:00
Abhishek Arya cd9477213a
Fix ujson project and infra/ for python atheris. (#4706) 2020-11-24 11:36:42 -08:00
Abhishek Arya e7921e7795
Python fuzzing fixes - disable leak checking, remove flags in atheris. (#4681)
* Python fuzzing fixes - disable leak checking, remove flags in atheris.

* Fix flags printing.

* Dont export, use directly.

* Try unset.

* Unset flags when python was built.
2020-11-20 11:10:51 -08:00
Abhishek Arya 5e3f47dba6
Fix ujson python fuzzing. (#4667)
* Fix ujson python fuzzing.

* Fix.

* Improve integration.

* Remove preload, stick with wrapper with /bin/sh.

* Update build.sh
2020-11-19 22:41:12 -08:00
Abhishek Arya 98fa319760
Improve ujson build.sh to build fuzzers. (#4662)
Still ASAN lib preload is missing.
2020-11-19 10:35:53 -08:00
mbarbella-chromium e36bb8f7c6
Initial support for ujson (as a Python fuzzing sample). (#4657)
* Initial support for ujson (as a Python fuzzing sample).

* Add python to supported languages.

* Fix TODO.

* Update presubmit to ignore python in projects.

* Format

* Remove explicit addition of -fsanitize=fuzzer-no-link

* Only fuzz using libFuzzer.

Co-authored-by: Martin Barbella <mbarbella@google.com>
2020-11-19 07:40:10 -08:00