Commit Graph

6083 Commits

Author SHA1 Message Date
Isaac Brodsky 31ae8ce3a3
H3: Update for functions returning error codes (#6214)
* H3: Update for functions returning error codes

* Read H3 index directly from uint8_t data, not string

* remove new_str

* Fix pointer/int type confusion

* Revert h3NeighborRotations change that is not in master yet

* Fix h3NeighborRotations (again)
2021-08-13 21:53:24 -07:00
Guido Vranken d0c9f6f4a7
[wolfssl] Update auto_ccs and disable AFL (#6204) 2021-08-13 06:56:22 -07:00
jonathanmetzman 01247be731
[infra][tests][NFC] Change mocked function prefix from "mocked_" to "mock_" (#6198)
Also rename mock_ functions to have impl suffix so we can use mock_ in place of mocked_
2021-08-12 11:25:57 -07:00
Quentin Young 5ca8c0e251
[frr] Change CC email (#6209)
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2021-08-12 19:19:17 +01:00
Caolán McNamara 3dc3309463
harfbuzz moved the sample fonts from 'shaping' to 'shape' (#6208) 2021-08-12 09:44:54 -07:00
Caolán McNamara 68eb27dd42
update libreoffice build dependencies (#6206) 2021-08-12 07:16:40 -07:00
Andrew Brown face127c59
wasmtime: install a newer version of OCaml (#6205)
* wasmtime: install a newer version of OCaml

* Update Dockerfile

* wasmtime: move environment setup to build.sh
2021-08-12 09:38:22 +01:00
jonathanmetzman 7942bb4491
[helper] Change logging from error to info (#6200) 2021-08-11 11:09:24 -07:00
Fabian Meumertzheim ede1fb13ae
[infra] Enable Jazzer support for UBSan C++ features (#6202)
Jazzer now links in the UBSan C++ runtime and thus support the vptr
and function sanitizer settings.
2021-08-11 17:35:29 +00:00
Julien Cretin 75914341cb
Update auto_ccs of opensk project (#6197) 2021-08-11 18:18:36 +01:00
Google AutoFuzz Team 70115d4839
Don't use nginx' internal memory allocator (#6199)
* Don't use nginx' internal memory allocator

See http://nginx.org/en/docs/dev/development_guide.html#debug_memory for details.

* Fix the build.
2021-08-11 18:17:55 +01:00
Andrew Brown d63a5f1432
wasmtime: provide OCaml packages for build (#6193)
* wasmtime: provide OCaml packages for build

In order to build the WebAssembly spec interpreter, these packages are needed.

* wasmtime: remove ocamlbuild as a dependency

The oss-fuzz-base image is using Ubuntu 16.04.7 and the `ocaml-nox` package at this version contains `ocamlbuild`.
2021-08-10 22:30:39 +00:00
Tadeusz Struk b666937c23
tpm2-tss updates (#6195)
* tpm2-tss: update version of tpm simulator

Getting tpm simulator is failing occasionally [1].
Updating simulator version to the lastet might help it.

[1] https://oss-fuzz-build-logs.storage.googleapis.com/log-66fdad5b-1f63-4bc2-8a0e-876201912036.txt

Signed-off-by: Tadeusz Struk <tstruk@gmail.com>

* tpm2-tss: update outdated contact list

Signed-off-by: Tadeusz Struk <tstruk@gmail.com>

* tpm2-tss: add main_repo section

Signed-off-by: Tadeusz Struk <tstruk@gmail.com>
2021-08-10 13:22:19 -07:00
jonathanmetzman 94cfc4fe2f
[cifuzz] Add pruning task (#6188)
Fixes: #6064
2021-08-10 11:10:10 -07:00
jonathanmetzman e407f54e61
[infra][build] Switch to f-strings. (#6182) 2021-08-10 10:48:16 -07:00
jonathanmetzman e7952dac25
[presubmit][NFC] Use descriptive tone in docstrings (#6192) 2021-08-10 10:47:42 -07:00
Dominik Röttsches b7951bfde4
[freetype2] Remove CC address (#6190)
Project member email address no longer exists.
2021-08-10 12:46:56 +01:00
Julien Cretin 9801cf8fb9
Fuzz develop branch instead of stable (#6191) 2021-08-10 12:45:22 +01:00
bcreasey 59d03d2684
adding new contacts for reports (#6189) 2021-08-09 15:58:13 -07:00
Micah Snyder a42a1bc957
[clamav] Fix build (#6187)
The instructions for building libclamav-only dependencies changed.

The clamav_deps collection is now used for all clamav dependencies.

A) We don't need to waste resources building dependencies used only
   by clamav programs.
B) The ncurses static build seems to be failing on this image, which
   is why the build is broken/needs fixing.
2021-08-09 21:33:25 +01:00
Sebastian Rasmussen d15949a70f
[jbig2dec] Limit allocator to common memory use, avoiding timeouts (#6184)
The JBIG2 format allows for ridiculously large images (4G x 4G
pixels!), which means that jbig2dec may use an enormous amount of
memory when it tries to decode them. OSS-fuzz currently restricts test
cases to 2.5Gbyte of memory per run, so the jbig2dec fuzzer
implemented a custom allocator to limit jbig2dec's memory usage to
1Gbyte. When the custom allocator runs out of memory jbig2dec
indicates an error, frees its resources and returns.

Limiting memory usage to 1Gbyte, below OSS-fuzz's limit of 2.5Gbyte,
eliminated the entire class of false positive OSS-fuzz issues
concerning out of memory situations. These were false positives in the
sense that a program using jbig2dec is in control of how much memory
jbig2dec uses, but the program must implement a custom jbig2dec
allocator and limit it to the desired amount of memory.

Another class of false positive OSS-fuzz issues remain; issues where
the image data still takes more than 25 seconds to process, causing an
OSS-fuzz timeout. These cases use less than 1Gbyte of memory, but
processing that amount of data may still take a long time. Since
processing time and data size are related, a program may limit the
amount of memory allotted to jbigdec's custom allocator to something
less than 1Gbyte to reduce processing time.

Running through a set of real world JBIG2 images shows that no more
than 20MByte is used to decode any of them and none take more then 25
seconds to decode on a desktop machine. To eliminate the class of
false positive OSS-fuzz timeout issues the fuzzer will now limit the
amount of memory to 32Mbyte with the hope that their processing time
will be reduced below 25 seconds.

Of course OSS-fuzz may still detect issues where jbig2dec gets caught
in an endless loop (or the processing time is long for a reason other
than data size). These are the issues we want OSS-fuzz to identify and
get fixed, since the parameters causing those timeouts are not in
control by a program using jbig2dec.
2021-08-09 08:50:15 -07:00
Robert Löhning 48fa0d4d41
[infra] Upgrade cmake to latest release (3.21.1) (#6185)
Qt now requires 3.20 or higher.
2021-08-09 08:49:25 -07:00
Caolán McNamara 001b738234
shrink the build dependencies that fuzzing libreoffice needs (#6183) 2021-08-08 10:44:33 -07:00
jonathanmetzman 7386a01060
[cifuzz][nfc] Switch log info to log error (#6178) 2021-08-06 10:34:20 -07:00
DavidKorczynski 779d8562a9
net-snmp: fix build following upstream changes (#6177)
* net-snmp: change location of fuzzers upstream.

* remove tmp checkout.
2021-08-06 16:12:58 +00:00
dependabot[bot] 165e3a368c
Bump jinja2 from 2.10 to 2.11.3 in /infra/ci (#6172)
Bumps [jinja2](https://github.com/pallets/jinja) from 2.10 to 2.11.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/2.10...2.11.3)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-06 08:51:29 -07:00
DavidKorczynski b9369041cc
apache-httpd: fix str size issue. (#6176) 2021-08-06 11:45:49 +01:00
jonathanmetzman 866f387c7a
[cifuzz] Speculative fix for issue with seed corpus/backup corpus (#6175)
This should fix #6173
2021-08-05 22:22:59 +00:00
jonathanmetzman fcca81b36f
[cifuzz] Add feedback for bad build check (#6174) 2021-08-05 22:20:56 +00:00
jonathanmetzman d01808333d
[cifuzz] Fuzz in cifuzz-base (#6142)
Fixes: #5926
2021-08-05 13:27:24 -07:00
jonathanmetzman af2617d7d0
[ClusterFuzzLite][docs] Start writing docs (#6165)
I started writing some important docs, such as overview, build_integration, and running_clusterfuzzlite. However, most important docs are still TODO.
This PR at least adds a skeleton for those docs.
2021-08-05 12:01:07 -07:00
DavidKorczynski be08bbd524
infra: add coverage sanitizer option (#6171)
* infra: add coverage sanitizer option

* fix lint
2021-08-05 18:53:20 +00:00
Google AutoFuzz Team 8a566fccd5
Fix bleach's build (#6169)
Mozilla renamed the `master` branch `main`.
2021-08-05 13:27:38 +01:00
jonathanmetzman 80160735b6
Reinstall jekyll deps to update kramdown version in Gemfile.lock (#6168) 2021-08-04 20:51:07 -07:00
jonathanmetzman 7e35b01f7e
[presubmit][NFC] Fix copyright line 2021-08-04 19:38:54 -07:00
jonathanmetzman aac1cb8c76
[infra][NFC] Use one source of truth for engines, languages etc. (#6163)
Do this only where it makes sense. For example, since CIFuzz doesn't
support dataflow, maintain a separate source of truth.
2021-08-04 17:04:55 -07:00
jonathanmetzman f0a42fbb1f
[CIFuzz] Force external to use .clusterfuzzlite for build integrations. (#6167) 2021-08-04 16:13:51 -07:00
jonathanmetzman 88dba120a8
[CIFuzz][NFC] Add function for setting env vars in docker command. (#6162) 2021-08-04 14:19:22 -07:00
DavidKorczynski 3c43288e55
apache-httpd: new fuzzers and more targets. (#6166) 2021-08-04 21:39:43 +01:00
Michael Ford ec3c914f22
bitcoin: remove i386 HAVE_BUILTIN_MUL_OVERFLOW workaround (#6140)
This should no-longer be necessary now that
https://github.com/bitcoin/bitcoin/pull/21882 has been merged upstream.
2021-08-04 08:49:19 -07:00
jonathanmetzman a944a0359f
[CIFuzz][helper] Fix external project support and add tests. (#6161) 2021-08-04 15:35:48 +00:00
jonathanmetzman 2555c3cd36
[docs][NFC] Don't rely on deprecated flag to silence warning. (#6164) 2021-08-04 08:19:11 -07:00
Nick Mathewson 6ed36ae884
Fix Tor build issue related to OpenSSL's use of lib64 (#6160)
The openssl build process now puts objects into lib64, even if it
wasn't told to do so.  Tor's crufty old library detection code
didn't handle that.
2021-08-04 14:51:17 +00:00
jonathanmetzman d88b5e4aa7
[CIFuzz] Add support for external projects to helper.py (#6141)
Add support to helper.py for external projects for all subcommands except `download_corpora`.
External users just need to specify `build_integration_path`, `project_src_path` and `external`.

Also do a big refactor to pass a project object as part of args instead of a string containing the name of the project or its
path.
Related: #6125
2021-08-04 06:42:17 -07:00
Fabian Meumertzheim 4f34600051
[docs] Enable AWT headless mode in Java guide (#6155)
Fixes https://github.com/google/oss-fuzz/pull/6105#issuecomment-887950308.
2021-08-04 10:18:09 +01:00
jonathanmetzman 0bf87a10c4
[cifuzz] Only grab github-specific env vars on github (#6150)
This removes need for non-OSS-Fuzz users to fake using OSS-Fuzz.

Fixes: #6129
2021-08-03 18:13:59 -07:00
jonathanmetzman 6f0238764e
[infra][NFC] Use "testcase" instead of test_case for consistency. (#6159) 2021-08-03 18:05:00 -07:00
jonathanmetzman 0ea44bb355
[cifuzz][NFC] Move default configs to config_utils.py (#6157) 2021-08-03 17:59:17 -07:00
jonathanmetzman 432105a31a
[cifuzz][NFC] Move Workspace to workspace_utils. (#6158)
In hindsight, it doesn't have a lot to do with the rest of
config_utils. And config_utils is getting crowded.
2021-08-03 17:58:20 -07:00
jonathanmetzman 264c160e3a
[cifuzz] Add basic end-to-end tests. (#6139)
This test doesn't really do diffing or affected fuzzers properly.
Nor does it check the workspace for existence of certain things, nor
does check the filesystem for proof things happened. It is still
a WIP.
2021-08-03 15:40:31 -07:00