Commit Graph

4106 Commits

Author SHA1 Message Date
Teju Nareddy 59cac107e6
[ESPv2] Use latest base-builder image (#3635)
No need for workaround since ESPv2 was updated to Bazel 3.0.0

Ref: #3093
Signed-off-by: Teju Nareddy <nareddyt@google.com>
2020-04-13 14:11:52 -07:00
AdamKorcz d31872b9c2
Fixed broken build of nanopb and switched to pip3 (#3637) 2020-04-13 13:56:09 -07:00
Guido Vranken 9e6fc1ed39
[cryptofuzz] Enable libsodium again (#3631) 2020-04-13 06:36:50 -07:00
Sebastian Rasmussen f3955c875a
[ghostscript] Add another project member to the CC-list. (#3632) 2020-04-13 06:36:21 -07:00
Chris Wolfe 345abf4d38
switch to cmake, find new headers (#3630) 2020-04-12 17:26:12 -07:00
Tim Rühsen 1eea5653d2
[libpsl] Update libicu to fix the build (#3628) 2020-04-12 12:10:44 -07:00
Paul Dreik 19248a24c5
[simdjson] change of upstream address (#3627)
* simdjson has become a github organization and changed address

* [simdjson] Spell C++ in lowercase
2020-04-12 12:10:29 -07:00
Sebastian Rasmussen b96dd54183
[ghostscript] Make sure that all state kept in memory. (#3619)
The default setting allows for state to be temporarily saved to disk.
This is likely to interfere with the fuzzer's knowledge about state of data.
2020-04-11 06:13:26 -07:00
Sebastian Rasmussen 41c719f127
[ghostscript] Enable flag also used in valgrind builds. (#3620)
Valgrind may complain when software reads out partially uninitialized data
and stores it elsewhere, but only reads the initialized parts from this
latter location. The flag enables code that initializes all the data to
avoid valgrind reporting false positives. Presumably MSAN suffers from
similar issues so, try enabling this flag.
2020-04-11 06:13:02 -07:00
Abhishek Arya 56041222c6
Revert "Update Dockerfile (#3614)" (#3617)
This reverts commit 1c4b1d71f3.
2020-04-10 16:47:21 -07:00
Max Moroz b5c2e487cb
[libcbor] Disable dataflow config. (#3615) 2020-04-10 16:43:52 -07:00
Abhishek Arya 1c4b1d71f3
Update Dockerfile (#3614) 2020-04-10 16:11:38 -07:00
Catena cyber 07322d0b31
Adds more asserts to project suricata build (#3594) 2020-04-10 07:36:07 -07:00
DavidKorczynski 68f5455983
Added three more fuzzers for jsoncons. (#3611) 2020-04-10 07:35:10 -07:00
Max Moroz e6a5e0a666
[honggfuzz] Enable honggfuzz for 19 more projects (fixes #3591). (#3609)
* [honggfuzz] Enable honggfuzz for 19 more projects (fixes #3591).

* rename fuzzing puzzles target
2020-04-09 13:47:54 -07:00
Abhishek Arya 7d95568b4c
Temporarily disable honggfuzz on failing projects due to #3607 (#3610) 2020-04-09 12:45:28 -07:00
Robert Löhning f153ab8e4b
[qt] Don't install xcb (#3608)
Seems to be needed on Windows only.
2020-04-09 12:20:36 -07:00
Robert Löhning c833c8dfa2
[qt] Don't install xcb (#3605)
We use the minimal plugin instead.
2020-04-09 10:58:45 -07:00
Evgeny Vereshchagin 65dcabc484
[systemd] remove my non-gmail address (#3606)
It doesn't seem to make much sense to keep non-gmail addresses there.

https://github.com/google/oss-fuzz/issues/3576
https://bugs.chromium.org/p/monorail/issues/detail?id=7461
2020-04-09 10:57:11 -07:00
DavidKorczynski 85076c1a1e
Update project.yaml (#3603)
Changed the primary contact address as request by the maintainers https://github.com/danielaparker/jsoncons/pull/221#issuecomment-610964397
2020-04-09 10:57:01 -07:00
Max Moroz 6d88ff7c4f
[docs] Link the general definition of the fuzz target on the reference page (fixes #2148). (#3602) 2020-04-08 22:27:04 -07:00
Max Moroz 340882a3ce
[infra] Build LLD inside base-clang image. (#3597) 2020-04-08 22:03:12 -07:00
Oliver Chang 81febde566
Log output when we fail to detect main repo. (#3599) 2020-04-09 12:38:46 +10:00
Abhishek Arya 149bb8bee7
Skip seed corpus unpack for Honggfuzz in bad build check (#3600)
Matches AFL, also should fix some project failures like mbedtls with many targets.
2020-04-08 19:30:42 -07:00
Max Moroz f10d55e9bc
[zlib] fix copyright year in the build script. 2020-04-08 14:46:46 -07:00
Abhishek Arya f4878b30fc
Add check_build for Honggfuzz targets, enable in travis. (#3596) 2020-04-08 14:24:34 -07:00
Abhishek Arya 2efc17a17e
Fix jsc build. (#3595) 2020-04-08 10:04:45 -07:00
Abhishek Arya 42bf235998
Add Honggfuzz to new project guide doc. 2020-04-07 21:29:16 -07:00
Abhishek Arya bc308a7a32
Add honggfuzz build in travis. (#3589)
* Add honggfuzz build in travis.
* Skip check_build for honggfuzz, only build.
2020-04-07 19:26:24 -07:00
Sebastian Rasmussen e2e155fe0e
Update flags and enable new sanitizer (#3587)
* [ghostscript] Replace deprecated flag by current flag.

In old versions of Ghostscript the flag -dPARANOIDSAFER did
more checks than -dSAFER did. In modern versions the two flags
are identical. Moreover the flag -dPARANOIDSAFER has been
deprecated for a long time, and may be removed in the future.

In Ghostscript 9.50 and later -dSAFER is the default, and does
not have to be specified. To be able to test older yet still
modern Ghostscript versions without problems -dSAFER is used.

* [ghostscript] Force enable banding while rendering.

Ghostscript uses the set resolution to determine if banding should be
enabled during rendering, or not. Under normal circumstances documents
are rendered at maybe 600 DPI, but to conserve memory while running in
OSS-fuzz 200 DPI is used (-r200x200). To still test the banding code
used under normal circumstances banding is force enabled.

Moreover BufferSpace is used to determine the band height and thus the
number of bands. At 600 DPI this is normally 4Mbyte, so a reasonable
approximate at 200 DPI is 450k. Thus BufferSpace is also set.

* [ghostscript] Enable another sanitizer to see more issues.
2020-04-07 09:10:11 -07:00
DavidKorczynski c13b7e1c2e
Added more fuzzers for jsoncons. (#3586)
* Added more fuzzers for jsoncons.

* Fixed mistake in travis.

* removed bson fuzzer.
2020-04-07 07:28:44 -07:00
Max Moroz e3bb988d8a
[infra] Add build retry logic inside wait_for_build.py (#419). (#3585)
* [infra] Add build retry logic inside wait_for_build.py (#419).

* typo

* address comments by Oliver
2020-04-06 18:58:09 -07:00
Sebastian Rasmussen 302cf1550b
[jbig2dec] Limit allocations to 1Gbyte. (#3583)
Apparently the maximum memory usage is 2.5Gbyte so a limit of 3Gbyte
is to liberal. Set limit to 1Gbyte to make sure that any extra memory
used by the fuzzer is allowed. 1Gbyte ought to be enough for most real
world images decoded by jbig2dec.
2020-04-06 16:02:59 +10:00
Oliver Chang 1992503e5c
Fix incorrect variable name in bisector.py (#3581) 2020-04-06 11:28:46 +10:00
DavidKorczynski e587cc1868
Added jsoncons project. (#3568)
* Added jsoncons.

* Updated with correct email and with the fuzzers merged into master.

* Fixed docker file.
2020-04-03 19:47:58 -07:00
Aaron Boxer 7b356731ba
[grok] add dataflow support (#3580)
* grok: add dataflow support

* clean up in Dockerfile

* remove dataflow

Co-authored-by: Max Moroz <balalaikacr3w@gmail.com>
Co-authored-by: Max Moroz <mmoroz@chromium.org>
2020-04-03 17:28:05 -07:00
AdamKorcz 22420b8aa8
Adding Libucl project (#3573)
* Adding Libucl to OSS-fuzz

* Added a line to run Travis again

* Fix to build-error

* Added no-detect-leaks

* Added maintainer email address
2020-04-03 13:03:00 -07:00
Bhargava Shastry c06fadbbbf
libpng-proto: Add new proto fuzzer with custom mutator that changes unknown chunk to known chunk. (#3168) 2020-04-03 07:33:15 -07:00
Sebastian Rasmussen 96b94f6741
[ghostscript] Use official git server URL. (#3578)
This is the correct URL according to https://www.freetype.org/developer.html

This resolves the HTTP 502 error from the git server.
2020-04-03 07:29:23 -07:00
Bhargava Shastry 6101f85ba0
xmlsec: Install and link xmlsec against it (#3577) 2020-04-03 05:30:56 -07:00
Sebastian Rasmussen 3b695b10de
[ghostscript] Build using the bundled tiff and jpeg libraries. (#3579)
The previous configuration tried to use the system tiff library with
the bundled jpeg library. That configuration is not supported by
Ghostscript.
2020-04-03 05:30:19 -07:00
David Wong f5098035eb
[libra] Fix building failure (#3566)
After many days banging my head on FFI issues in rust,
I hereby present a fix to the issue.

Note that I've got some help, and I'm not sure I understand everything here.
But this is my understanding of what was not working, and how we fixed it.

The **problem** is that on Ubuntu 16 with llvm/clang 10,
we were **statically linking libc++** in [rocksdb][1]:

```rust
let stdlib = if tool.is_like_gnu() {
  "libstdc++.a"
} else if tool.is_like_clang() {
  "libc++.a"
} else {
  // Don't link to c++ statically on windows.
  return;
};

// ...

// remove lib prefix and .a postfix.
println!(
  "cargo:rustc-link-lib=static={}",
  &stdlib[3..stdlib.len() - 2]
);
```

This means that during building, when we reach building of rocksdb,
we import a number of symbols from libc++ (like [__muloti4][2])
that end up in the associated `.rlib` (rust obj file).

These symbols interestingly do not exist in libstdc++ which is used by gcc.
This is important because on linux (unlike mac), the rust toolchain is compiled with gcc.
So these intrinsics are not present in the linux rust toolchain,
and have been redeclared in the [compiler-builtins][3] crate.

So here is the problem:

* rust toolchain's defines these intrinsics functions
* libc++ defines these intrinsics functions

And the recipe for disaster:

* libc++ is statically linked in rocksdb, which means all the symbols are imported
* symbols in rocksdb's produced `.rlib` are colliding with the symbols from the rust toolchain `.rlib`

To fix this. Maybe we could have compiled the stuff with libstdc++?
But instead we:

1. removed the static linking
2. we linked libc++ at the very last moment via:
  ```rust
  RUSTFLAGS="-C link-arg=-L/usr/local/lib -C link-arg=-lc++"
  ```

At final linking time, the linker sees that the intrinsics are already defined in one of the `.rlib`
(produced by compiler-builtins) and so does not import these functions from libc++.
Actually, at this point it only statically link the functions that need to be linked.

It seems to work.

[1]: c79d2c2ac6/librocksdb_sys/build.rs (L115)
[2]: https://github.com/llvm-mirror/libcxx/blob/master/src/filesystem/int128_builtins.cpp
[3]: e578d47247/src/int/mul.rs (L107)
2020-04-02 14:28:09 -07:00
Kunal Tyagi fa2d9f5017
Adding PCL (#3574)
* Adding PCL

As per https://github.com/PointCloudLibrary/pcl/issues/3850

* Fix for the presubmit check
2020-04-02 14:01:01 -07:00
Leo Neat c04e4d288d
[CIFuzz] Documentation update (#3572)
* Documentation update

* Abhishek comments
2020-04-02 12:36:17 -07:00
DavidKorczynski 6f973ac806
Added xpdf project. (#3565)
* Added xpdf project.

* Tried linking with cxx.

* Since the executables build are not needed for the fuzzer build to succeed we can ignore the case where some test-apps are not build on the oss-fuzz platform.

* Ignore errors that dont impact the fuzzers.

* Updated the project file with language field.
2020-04-02 08:04:22 -07:00
Robert Löhning 711e015898
[qt] Add fuzzer for QRegularExpression (#3567) 2020-04-02 07:59:40 -07:00
Michael Niedermayer 8cfa643be8
[FFmpeg] Add fate samples for demuxer tests (#3564)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2020-04-01 16:51:53 -07:00
Gilles Peskine a49611cd5c
[bignum-fuzzer] Mbed TLS no longer has an mbed-crypto submodule (#3556)
[bignum-fuzzer] Mbed TLS no longer has an mbed-crypto submodule

Mbed TLS has gone back to being self-contained, without a separate
submodule for the cryptography part of the library. Revert the
bignum-fuzzer build scripts accordingly.

This reverts commit 54733ddc84.
2020-04-01 15:34:38 -07:00
Google AutoFuzz Team 5d818ce221
add new fuzzer and edit the Dockerfile and build (#3563) 2020-04-01 13:58:11 -07:00
Leo Neat 9ab8312c8c
Remove walk from utils.py (#3561)
Removing useless os.walk from utils.py.
2020-04-01 10:10:51 -07:00