oss-fuzz/infra
David Cook 6fc050ec9e
Clean up MemorySanitizer library warnings (#4694)
* Update infra/base-images/all.sh

Add build of base-sanitizer-libs-builder and msan-libs-builder to this
shell script.

* msan: Don't warn on un-instrumented standard libs

These libraries do not need to be built with instrumentation, because
MemorySanitizer includes interceptors for them.

* Fix indentation

* Add missing docstrings

* Fix unused variable

* Fix invalid names

* Install python-apt on CI

* Revert "Install python-apt on CI"

This reverts commit d3da49cf90.

* Install and use python-apt in system directory

* Revert "Install and use python-apt in system directory"

This reverts commit e0ede101fb.

* Build python-apt from source

* Check out correct version of python-apt

* Fix octal literals

* More indentation fixes

* Add more missing docstrings

* Change variable names of opened files

* Remove unused import

* Ignore lints about package.Package API

* Fix or ignore remaining invalid names

* Fix apparent typo in compiler_wrapper_test.py

-z should precede a keyword, not a long option

* Fix use of xrange

* Style fixes, compiler_wrapper

* Fix apparent error in compiler_wrapper_test.py

Similar to the previous error, the test case would pass "-z
--no-undefined" to the linker. "-z" only has an effect when it is
followed by a keyword, otherwise ld ignores it and prints a warning
message. In this test case, "-z" and "--no-undefined" were passed in two
separate "-Wl," compiler arguments, but they reflect a common issue.

* Add missing license header

* Rename more functions

* Better name for global variable

* Rename methods of Package

* Rename functions in msan_builder.py

* Fix invalid variable names

* Fix useless-object-inheritance

* pylint: Fixes for Package and its subclasses

* Remove unused imports

* Indentation fixes

* Fix too-may-locals error in msan_build.py

* Add missing docstrings
2020-12-03 07:52:36 +11:00
..
base-images Clean up MemorySanitizer library warnings (#4694) 2020-12-03 07:52:36 +11:00
build Fix requirements.txt for GCB functions. (#4670) 2020-11-20 12:07:09 +11:00
ci Golang project uses compile_go_fuzzer script (#4685) 2020-11-21 07:11:43 -08:00
cifuzz [CIFuzz] Set CIFUZZ env var when building/checking/running CIFuzz fuzzers. (#4699) 2020-11-24 08:10:05 -08:00
go/coverage Self-hosts golang scripts for golang coverage (#4698) 2020-11-24 07:37:56 -08:00
testcases [infra] Fixing bisection to work with more OSS-Fuzz projects (#3152) 2020-01-06 12:17:26 -08:00
uploader Increase retry value to avoid build failures (#1468) 2018-06-02 09:12:31 -07:00
.dockerignore Make CIFuzz more debuggable by allowing one to run off a branch (#4666) 2020-11-24 06:32:23 -08:00
.pylintrc [infra] showing unstable builds 2016-12-29 11:06:49 -08:00
README.md Switch docs to new structure (#2663) 2019-08-07 07:37:16 -07:00
bisector.py bisector: early exit when old_commit == new_commit. (#4458) 2020-09-18 14:10:10 +10:00
bisector_test.py Return main repo URL in bisector result. (#3672) 2020-04-21 08:05:45 +10:00
build_fuzzers.Dockerfile Make CIFuzz more debuggable by allowing one to run off a branch (#4666) 2020-11-24 06:32:23 -08:00
build_specified_commit.py [infra] Add retry decorator and use it. (#4702) 2020-11-24 09:51:56 -08:00
build_specified_commit_test.py [cifuzz] disable failing test (#4700) 2020-11-24 08:03:59 -08:00
helper.py [helper] Make sure directories are created before they are passed to container engine (podman) (#4763) 2020-12-01 09:12:30 -08:00
presubmit.py Initial support for ujson (as a Python fuzzing sample). (#4657) 2020-11-19 07:40:10 -08:00
repo_manager.py bisector: try older commits if old_commit has the same result as new_commit (#4096) 2020-07-09 20:04:13 +10:00
repo_manager_test.py [NFC][CIFuzz] Fix coding issues. (#4550) 2020-11-17 13:39:57 -08:00
retry.py [infra] Add retry decorator and use it. (#4702) 2020-11-24 09:51:56 -08:00
run_fuzzers.Dockerfile Make CIFuzz more debuggable by allowing one to run off a branch (#4666) 2020-11-24 06:32:23 -08:00
templates.py [helper] Change generate command to use "LLC" instead of "Inc." (#4753) 2020-11-30 11:02:31 -08:00
test_repos.py Fix permission denied errors on CI in unittests (#4664) 2020-11-20 10:39:19 -08:00
utils.py utils: ignore subprocess-run-check (#4102) 2020-07-09 14:18:21 -07:00
utils_test.py [NFC][CIFuzz] Fix coding issues. (#4550) 2020-11-17 13:39:57 -08:00

README.md

infra

OSS-Fuzz project infrastructure

Core infrastructure:

  • base-images - docker images for building fuzz targets & corresponding jenkins pipeline.

Continuous Integration infrastructure:

helper.py

script to automate common docker operations

Command Description
generate Generates skeleton files for a new project
build_image Builds a docker image for a given project
build_fuzzers Builds fuzz targets for a given project
run_fuzzer Runs a fuzz target in a docker container
coverage Runs fuzz target(s) in a docker container and generates a code coverage report. See Code Coverage doc
reproduce Runs a testcase to reproduce a crash
shell Starts a shell inside the docker image for a project