Commit Graph

5066 Commits

Author SHA1 Message Date
AdamKorcz 32ef0b191c
[kOps] Initial integration (#4729)
* [teleport] Initial integration

* Minor update to run tests again

* [Kops] Initial integration

* Minor adjustment

* Run tests again

* Removed comment

* --depth'ed cloning of two repositories
2020-12-07 20:19:39 -08:00
AdamKorcz ca4fe7678b
[clib] Initial integration (#4735)
* [teleport] Initial integration

* Minor update to run tests again

* [clib] Initial integration

* Updates to build file

* Switched off AFL

* Minor correction
2020-12-07 20:14:28 -08:00
Oliver Chang a23d9bc6fb
Rename BaseRepoManager -> RepoManager. (#4800)
This was renamed in b0b99d5ccd
2020-12-08 10:01:38 +11:00
Jonathan Metzman e193d59148 Revert "Use print for printing stacktrace instead of using log."
This reverts commit ecffb3f662.

Commit should not have been committed to master.
2020-12-07 14:45:47 -08:00
Jonathan Metzman ecffb3f662 Use print for printing stacktrace instead of using log.
This makes stacktrace more legible.

Fixes https://github.com/google/oss-fuzz/issues/4649
2020-12-07 14:42:49 -08:00
Abhishek Arya ef5380e427
Disable influxdb
https://github.com/google/oss-fuzz/pull/4564
2020-12-07 12:08:49 -08:00
jonathanmetzman b0b99d5ccd
Cifuzz external build (#4656)
* Support building fuzzers for projects outside of OSS-Fuzz
* Use retry wrapper
* Fix some tests.
2020-12-07 10:50:11 -08:00
jonathanmetzman a24cebec02
Make test_all.py return nonzero when there are no fuzzers. (#4796)
Make test_all.py return nonzero when there are no fuzzers.

This matches the previous behavior.
Fixes https://github.com/google/oss-fuzz/issues/4795
2020-12-07 10:16:31 -08:00
AdamKorcz 87271d1721
[istio] Initial integration (#4762) 2020-12-07 09:30:24 -08:00
Tom Payne 1911e66f20
[cilium] Add Cilium project (#4784) 2020-12-07 09:29:20 -08:00
jonathanmetzman aecdd9c4e0
Fix helper.py (#4793)
Recently some python3-only code was added. Make code compatible with
Python2. Fixes https://github.com/google/oss-fuzz/issues/4792
2020-12-07 08:05:03 -08:00
Arash Partow f14497dba0
[exprtk] Enable loop upper-bound runtime checks in the fuzzer (#4789) 2020-12-06 11:52:24 -08:00
Abhishek Arya b9e6a5fc74
Revert msan patch (#4788)
* Revert "Fix msan build breakage. (#4787)"

This reverts commit 8f4d1b237d.

* Revert "Clean up MemorySanitizer library warnings (#4694)"

This reverts commit 6fc050ec9e.
2020-12-04 19:44:46 -08:00
Abhishek Arya 8f4d1b237d
Fix msan build breakage. (#4787)
Regression from
https://github.com/google/oss-fuzz/pull/4694
2020-12-04 19:21:35 -08:00
Abhishek Arya 588336d665
s/test_all/test_all.py for google cloud build. (#4783)
Fixes https://github.com/google/oss-fuzz/issues/4781
2020-12-04 08:26:34 -08:00
chris-liddell ed1c6e38d8
Fix Freetype upstream repo address. (#4782) 2020-12-04 07:30:03 -08:00
Oliver Chang 8bd567697d
build_specified_commit: fallback to oldest integration commit. (#4779)
When we fail a build, we attempt to identify the first OSS-Fuzz commit
prior to the upstream commit date.

If this does not exist, we bailed out. This commit changes it such that
we at least try on the oldest integration commit.
2020-12-04 17:51:31 +11:00
jonathanmetzman b1c77d1fa2
[test_all] Fix issue where CIFuzz may use an empty string for ALLOWED_BROKEN_TARGETS_PERCENTAGE (#4778) 2020-12-03 13:30:03 -08:00
jonathanmetzman c8d2319aa8
[test_all] Rewrite in Python (#4769)
Rewrite test_all in python.
Bash is quite annoying to write and test.
One issue with bash is it is even worse than Python for parallelism (which may be causing #4707).
Rewrite test_all in python and optimize base-runner/Dockerfile for fast development.
Also, combine some docker layers.
2020-12-03 12:52:34 -08:00
tsdgeos 8169d41e43
[poppler] We don't use this .cc file anymore (#4770) 2020-12-03 12:04:31 -08:00
Chris Fallin aa6646d893
wasmtime: add new codegen backend, and add contact for it. (#4772)
In [Wasmtime](https://github.com/bytecodealliance/wasmtime), we're
planning to transition eventually to a new x86 backend. We recently
added a fuzz target for this backend that differentially fuzzes against
a Wasm interpreter.

This PR adds the new backend's fuzz target and adds a contact (me) to
the notification list.
2020-12-03 12:03:55 -08:00
Catena cyber eb0c225372
Compiles json-c in ndpi project (#4773) 2020-12-03 08:23:18 -08:00
jonathanmetzman 8f8148438a
[cifuzz-example][tmp] Test something weird (#4771) 2020-12-02 14:15:59 -08:00
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
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
Randy a0ce13ff7f
libspng: disable msan temporarily (#4759) 2020-12-01 12:52:10 -08:00
Abhishek Arya ff51681a11
Update python_lang.md 2020-12-01 10:50:00 -08:00
Jakub Jelen f533434871
[helper] Make sure directories are created before they are passed to container engine (podman) (#4763) 2020-12-01 09:12:30 -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
jonathanmetzman a75169f0d0
[docs] Fix docs to use "LLC" instead of "Inc." (#4756) 2020-11-30 12:38:01 -08:00
DavidKorczynski 0736b5b08f
[Lua]initial integration. (#4653) 2020-11-30 11:48:27 -08:00
jonathanmetzman c63ba21574
[helper] Change generate command to use "LLC" instead of "Inc." (#4753)
This reflects the current style:
https://opensource.google/docs/copyright/#the-year
2020-11-30 11:02:31 -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
Oliver Chang cf0e9f0b44
Increase threshold for msan calls check in bad_build_check. (#4747)
Honggfuzz calls msan now:
e067013753

Should address #4743.
2020-11-30 18:10:36 +11:00
Abhishek Arya 84616ae4ce
Fix "exec format error" due to incorrect shebang in python target. (#4746) 2020-11-29 18:49:47 -08:00
Jamie Wilkinson 061586aea9
Update mtail fuzzing to use compile_go_fuzzer. (#4744) 2020-11-29 18:14:32 -08:00
Joel Höner 11996eb640
[zydis] Initial integration (#4725) 2020-11-29 16:43:40 -08:00
Nico Weber f40f590cea serenity: Build with ninja, and add @bugaevc to cc list (#4742)
* serenity: Build using ninja instead of make

It has a better default -j, which means local builds are much faster.
Also, the output is more pleasant to look at.

* serenity: Add bugaevc as requested on #4738
2020-11-29 13:39:21 -08:00
DavidKorczynski f25e7e0937
fluent-bit: update set up to reflect upstream changes. (#4739) 2020-11-28 11:43:13 -08:00
DavidKorczynski c28f4d8412
serenity: fix entire project build. (#4738) 2020-11-28 08:28:22 -08:00
tsdgeos 753a2a4c5b
Build the new fuzzers (#4733)
The memory sanitizer doesn't build the glib part because it fails, but the cpp and qt5 fuzzers are still built

Code based on code by ecalp-tps from bc358f33ad
2020-11-27 21:04:58 -08:00
Abhishek Arya eaa8b4c5fd
Revert "[Libmediaart] Initial integration (#4701)" (#4727)
This reverts commit 42d01f9c43.
2020-11-27 08:03:33 -08:00
Abhishek Arya 675d138642
Revert "New fuzzers for Poppler (#4635)" (#4726)
This reverts commit bc358f33ad.
2020-11-27 07:56:21 -08:00
ecalp-tps 42d01f9c43
[Libmediaart] Initial integration (#4701)
* Build works. Dict and corpus files - WIP

* Changing primary contact

* Building fuzz targets individually - ld cannot find libgcc_s

* Test if checks work

* mkstemp fails

* Build script done

* Minor

* Exclude get_file and process_file fuzzers for now

* Some comments

* Fix license

* Remove MSan

* Move tar extraction to Dockerfile. Fix dictionary and seed corpus.

* Change dict and corpus

* Small fix
2020-11-26 09:38:52 -08:00
ecalp-tps 945e74805a
[Cairo] Initial integration (#4703)
* Initial commit with build script and Dockerfile

* Corpus and dictionary added

* Some comments

* Trigger build check

* Remove MSan

* Move glib extraction to Dockerfile

* Move fuzzers into this repo. Fetch cairo from the upstream repo.

* Add missing license headers

* Fix dictionary and seed corpus

* Replace malloc with calloc. Remove unused variable. Replace DEFINE with const.

Minor fix
2020-11-26 09:38:10 -08:00
ecalp-tps 27c07b5192
[Gdk pixbuf] Initial integration (#4704)
* initial commit

* ld cannot find libgcc_s

* Build check passes - TODO: dict and corpus

* Corpus and dict added

* Line fix

* Some comments

* Remove MSan

* Move glib extraction to Dockerfile

* Move fuzzers into this repo. Fetch gdk-pixbuf from the upstream repo.

* Add missing license header

* Fix dictionary and seed corpus

* Temporarily using security-tps as the primary contact

* Replace malloc with calloc

* Randomize rotation amount
2020-11-26 09:37:05 -08:00
ecalp-tps bc358f33ad
New fuzzers for Poppler (#4635)
* Initial commit: cpp and glib work. qt5 compilation fails

* changing static libs to shared libs (freetype, lcms, openjp2)

* qt5 compiles

* build works for all three libs - todo: dict names

* Creating copies of dict for each fuzz target

* Remove tail command from build script

* Trying to fix build checks - export LD_LIBRARY_PATH

* change libpng and libz to static libraries

* retrigger checks

* ld cannot find -lgcc_s

* WIP for qt5

* Build check passes locally

* Remove -fno-rtti to make undefined sanitizer work. Remove MSan.
2020-11-26 09:26:40 -08:00
Randy d6957a1a36
stb: add more inputs (#4722) 2020-11-25 23:01:23 -08:00
Oliver Chang d94295fc05
Update project.yaml 2020-11-26 16:05:44 +11:00