Commit Graph

240 Commits

Author SHA1 Message Date
Max Moroz 4b73c4b308 [infra] Update bad_build_check to work with some edge cases. 2017-08-09 08:49:41 -07:00
Max Moroz 4e23946573 [infra] Pass FUZZER_BINARY to bad_build_check instead of FUZZER. 2017-08-08 15:07:45 -07:00
Max Moroz f6a3b09305 [infra] Make bad_build_check more verbose. 2017-08-08 13:03:41 -07:00
Max Moroz b1ea461e17 [infra] Add sancov binary to base-runner image in order to perform bad build checks. 2017-08-08 11:40:30 -07:00
Max Moroz f81476ca75 [infra] Add post build checks for catching and reporting bad builds + add test projects. (#754)
* [WIP] Add post build checks for catching and reporting bad builds + test projects.

* Move all type of issues into a single project. Tested all sanitizers.

* First version of the script for performing bad build checks. Still not ready to commit.\

* Added a valid example that should pass all the checks + fixed instrumentation check.

* Use SIGTERM and the handler calling _exit(0) for the startup crash case.

* Small fixes.

* Ignore startup_crash check_for fuzzing engines other than libFuzzer.

* Use "local" for local variables in the script, fix container name.

* Add COPY step for bad_build_check into base-runner Dockerfile.

* Make bad_build_check temporary noop unless EXPERIMENTAL_BAD_BUILD_CHECK is set to 1.

* Temporary remove test binaries step.

* Remove empty line.

* Remove unnecessary env variable.
2017-08-08 10:54:53 -07:00
Oliver Chang 621b2d4153 Update Dockerfile 2017-07-24 17:56:52 -07:00
Oliver Chang 75c9649979 base-runner run_fuzzer: pipe /dev/null to stdin
Targets could be incorrectly reading from stdin (e.g. #681).
2017-06-23 10:26:40 -07:00
Max Moroz 3cee68fa11 [infra] Remove "null" check from UBSan options. (#674)
There is not much value for us from this particular check:
- UBSan's "null" reports leading to real crashes are reported with ASan as well.
- Potential null references are not real crashes and might be considered
  as false positives, though it seems to be UB as per the standard.
2017-06-12 10:46:53 -07:00
robertswiecki fc451ca8af Practically revert 182f607f9b as it will force CC compiler for CXX in honggfuzz (#658) 2017-06-07 12:52:46 -07:00
robertswiecki 182f607f9b Use standard $CC as $HFUZZ_CC_ASAN to avoid expensive compiler search (#656) 2017-06-07 12:03:46 -07:00
Abhishek Arya e999b2cbab Enable 'return' feature for UBsan (#232) 2017-06-02 17:01:55 -07:00
robertswiecki 268d8052a2 Support honggfuzz as a FUZZING_ENGINE (#636) 2017-06-01 17:55:01 -07:00
Oliver Chang af86b0cbdb Use chromium clang revision for base-clang image. (#640)
We still use trunk libFuzzer (from chromium mirror).
2017-05-31 12:30:29 -07:00
Oliver Chang 6ee983a6a0 base-runner: use %fuzz_target%.dict if it exists.
For #619
2017-05-24 14:18:33 -07:00
Abhishek Arya 43838854c1 Add valgrind support in reproduce command (#596)
* Add valgrind support in infra/helper.py, fixes #592.

* Fix spacing.
2017-05-10 14:32:01 -07:00
Max Moroz 04e42ac17a [infra] Use only 'array-bounds' check of UBSan's 'bounds' check (#573).
For more info: https://github.com/google/oss-fuzz/pull/573#issuecomment-300494440
2017-05-10 16:13:28 +02:00
Max Moroz 19e73d89e9 [infra] Extend set of UBSan checks enabled. (#573) 2017-05-09 14:16:58 +02:00
Oliver Chang 4896be51cd Create a separate coverage build.
First part of #191.
2017-05-08 11:17:27 -07:00
Oliver Chang 38286301e3 [infra] Delete old infra code. 2017-03-30 12:22:22 -07:00
Oliver Chang 60835ac420 oss-fuzz/BASE_IMAGE -> oss-fuzz-base/BASE_IMAGE 2017-03-22 12:12:51 -07:00
Oliver Chang c2feab5746 More ossfuzz/IMAGE -> gcr.io/oss-fuzz/IMAGE. 2017-03-15 19:11:01 -07:00
Oliver Chang 7df64d4ac4 [infra] ossfuzz/IMAGE -> gcr.io/oss-fuzz/IMAGE 2017-03-15 18:46:31 -07:00
Mike Aizatsky 6488931029 [infra] using str comparison 2017-03-10 16:11:34 -08:00
Mike Aizatsky 72ec6fcc03 [infra] accepting OSSFUZZ_REVISION env variable 2017-03-10 11:14:20 -08:00
Mike Aizatsky e91a1cb1df [infra] experimental cloudbuild 2017-03-08 11:39:28 -08:00
Mike Aizatsky c18cb563eb [infra] experimental cloudbuild 2017-03-08 11:37:19 -08:00
Mike Aizatsky ffdd306d18 [infra] experimental cloudbuild 2017-03-08 11:36:32 -08:00
Mike Aizatsky bd91570be1 [infra] experimental cloudbuild 2017-03-08 11:32:55 -08:00
Abhishek Arya 534c720afc Build AFL libs with -O2, #421 2017-03-07 09:29:39 -08:00
Abhishek Arya e1d6f4a4fa Ensure all builds are optimized, fix #421
-O1 gives better coverage for fuzzing.
2017-03-07 09:28:43 -08:00
Abhishek Arya 1e9d8d25fd Enable AddressUseAfterScope everywhere, fix #426 2017-03-06 10:05:31 -08:00
Mike Aizatsky 6af349b61f [infra] simplifying bash 2017-03-03 16:37:19 -08:00
Mike Aizatsky fd3716e1bb [infra] remove extra stages 2017-03-03 16:06:19 -08:00
Mike Aizatsky 4e0110dc18 [infra] syntax fix 2017-03-03 15:31:38 -08:00
Mike Aizatsky 1b7132bb5f [infra] push images after building 2017-03-03 15:29:04 -08:00
Mike Aizatsky a7ed13b878 [infra] do not create uid 0 2017-03-03 14:30:45 -08:00
Oliver Chang 7ebb132bbd afl: don't set mem limit. 2017-02-22 12:05:29 -08:00
Oliver Chang 228f6d1b91 afl: don't override sanitizer flags 2017-02-22 09:03:58 -08:00
Kostya Serebryany 3483393621 add FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION (#410) 2017-02-21 17:43:41 -08:00
Abhishek Arya b519da3809 Fix check to escape control characters, CDATA end sequence 2017-02-19 22:30:59 -08:00
Abhishek Arya 4411467e0b Fix crashes due to unicode output from woff2,libxml2 2017-02-19 15:59:59 -08:00
Abhishek Arya 499690c55f Enable UBSan without vptr for ffmpeg, disable vptr for libFuzzer. (#404) 2017-02-17 23:13:50 -08:00
Abhishek Arya 208517244b Disable object-size, crashing all targets, #232 2017-02-17 10:30:40 -08:00
Oliver Chang d68a23644e Fix test_report for AFL. 2017-02-16 21:43:31 -08:00
Oliver Chang 76762126ce Update run_fuzzer 2017-02-16 21:33:37 -08:00
Oliver Chang 2e00fe90d1 [infra] (experimental) Support building with AFL (#396) 2017-02-16 15:09:37 -08:00
Abhishek Arya 810b7fe47b Update test_report 2017-02-16 07:11:25 -08:00
Abhishek Arya 5ba44509fe Update test_all 2017-02-16 07:11:13 -08:00
Abhishek Arya 78d9525370 Update test_report 2017-02-15 13:25:53 -08:00
Abhishek Arya d7bd27b071 Update test_all 2017-02-15 13:25:36 -08:00