Commit Graph

33 Commits

Author SHA1 Message Date
Dongge Liu 7e66453383
Make `Centipede` a default fuzzing engine (#10109)
1. Add `centipede` to `DEFAULT_ENGINES`.
2. Remove the `fuzzing_engines` attribute from `project.yaml`s if
redundant (i.e., all default engines are included in that YAML file).
3. Temporarily disable `centipede` on `c`/`c++` projects that previously
use all `DEFAULT_ENGINES` (200 projects did not specify
`fuzzing_engines` in `project.yaml`) so that we can gradually enable
centipede later them later.
2023-04-21 09:48:45 +10:00
DavidKorczynski bd848023c1
libass: migrate to upstream changes (#8552)
Fixes: https://github.com/google/oss-fuzz/issues/8526
2022-09-21 15:18:39 +01:00
AdamKorcz 93653634e9
[libass] Bump meson version (#6888) 2021-11-22 20:30:59 +00:00
rcombs 1c4bcf6267
libass: update my email address (#6779) 2021-11-05 18:30:23 +00:00
Oleg Oshmyan aa9cd06607
libass: release library memory on shutdown (#6469)
AddressSanitizer/LeakSanitizer has begun to report partial leaks
due to the library being initialized but never finalized. It's not
clear why only part of the memory is reported and why this hasn't
happened before now, but this is a somewhat legitimate report,
so add finalization calls to release all memory.

The libFuzzer API provides no shutdown cleanup hook,
so use a static variable with a C++ destructor.

Fixes https://github.com/google/oss-fuzz/issues/6440.

Add the required copyright header while we are at it.
This code appeared in https://github.com/google/oss-fuzz/pull/34
together with all the other files that do have the copyright header,
and this license seems to have been already required at the time,
so this should not constitute a licensing change.
2021-09-17 15:24:26 +01:00
Oleg Oshmyan 88bd3d7406
libass: fix build, upgrade Ubuntu, update contacts (#6423)
* libass: update contact list

One contact is retired; another is currently inactive.

* libass: don't build HarfBuzz tests

They won't be used, so this just wastes resources.

* libass: upgrade to Ubuntu 20.04

The build failures on 20.04 were due to explicit listing
of static library dependencies, which have changed on 20.04:
png12 was replaced by png16, fontconfig was missing -luuid,
and png needed -lz to follow it, not precede.

Replace the explicit -l list by $(pkg-config --static --libs).
However, -lm must be filtered out as it causes linker errors:
  > undefined reference to `_dl_x86_cpu_features'

While we are at it, Ubuntu 20.04 comes with new-enough FriBidi,
so we can stop building it.

It also has new-enough HarfBuzz, but it depends on libgraphite2,
which lacks a static library in the system package, and dynamically
linking against a system library does not work in OSS-Fuzz
as the shared object will not exist in the run-time environment.

Reorder the dependencies alphabetically for consistency.
2021-09-12 01:19:47 +01:00
jonathanmetzman bf1275f005
[Ubuntu upgrade] Pin projects to Xenial where fuzzer build fails. (#6293)
This does not include coverage build failures.
Related: #6180.
2021-08-24 15:24:25 -07:00
Oliver Chang 84faf55729
Populate a bunch of main_repo values. (#4815)
Also enforce this for future integrations.
2020-12-10 09:49:27 +11:00
Oleg Oshmyan 86eaa2b5d3
[libass] Build with HarfBuzz (#4562)
This fixes the build that got broken when libass made HarfBuzz
a required dependency. This should also cover more libass code
with the fuzzing.
2020-10-23 17:30:28 -07:00
devtty1er d561c49ae5
Update Dockerfiles (#4070)
* Use LABEL in place of MAINTAINER

* Remove LABEL maintainer from Dockerfiles
2020-07-06 13:18:23 -07:00
Max Moroz 71f4914c45
[presubmit] Enforce language attribute in project.yaml to be always set. (#3477)
* [presubmit] Enforce language attribute in projectt.yaml to be always set.

* Update documentation, better presubmit check, new project template.

* add docstring to templates.py

* Add example values in the project.yaml template and remove python value for now

* Add "project: c++" to 256 projects

* format

* Add labels and selective_unpack sections to the presubmit check

* fix incorrect auto_ccs format in three projects

* fix nss emails after rebase
2020-03-10 11:08:01 -07:00
jonathanmetzman 3049c50d48
Migrate projects using -lFuzzingEngine to $LIB_FUZZING_ENGINE (#2325)
Migrate from -lFuzzingEngine to $LIB_FUZZING_ENGINE where possible and not causing breakage
2019-05-01 11:09:55 -04:00
Abhishek Arya b2f2519b63
Update build.sh 2018-02-20 12:07:15 -08:00
Abhishek Arya 96e247040f
Use make instead of make install in fribidi 2018-02-20 10:15:17 -08:00
Abhishek Arya 80bcc0f23e
Fix #1160 2018-02-15 20:51:33 -08:00
Abhishek Arya 9db38ff62d
Fixes #1160 2018-02-15 06:56:34 -08:00
Max Moroz 5646cd7be7 [libass] Disable MSan since dependencies are not instrumented properly (#819). 2017-09-07 15:13:27 -07:00
Oliver Chang 8085d12389 Update project.yaml 2017-06-07 09:15:13 -07:00
Oliver Chang ca0b83b0e9 Disable honggfuzz for builds that are failing.
Revert once #646 is fixed.
2017-06-01 20:47:12 -07:00
Abhishek Arya 1607410bb1 Enable msan experiment on some projects. (#591) 2017-05-10 09:10:46 -07:00
Devin Jeanpierre 330386686d Use apt-get update && apt-get install, per best practices: (#561)
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/

I ran into this because I was getting errors locally, like:

    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/libdpkg-perl_1.18.4ubuntu1.1_all.deb  404  Not Found [IP: 91.189.88.149 80]

It turns out you get these if you don't update, and the official best practices are to `run apt-get update && apt-get install`. In fact, running _any_ apt-get install command without the apt-get update && before it can result in unfortunate caching artifacts -- see "cache busting". (P.S. thanks to Peng on Freenode for helping me, I'm bad at Ubuntu.)

So:
    sed -re \
        's/RUN apt-get ((-y )?(install|build-dep))/RUN apt-get update \&\& apt-get \1/' -i \
        projects/**/Dockerfile

I also manually fixed the cases that already ran apt-get update in their Dockerfile:
    dlplibs/Dockerfile
    grpc/Dockerfile
    libreoffice/Dockerfile
2017-05-01 23:31:02 -07:00
Oliver Chang 60835ac420 oss-fuzz/BASE_IMAGE -> oss-fuzz-base/BASE_IMAGE 2017-03-22 12:12:51 -07:00
Oliver Chang 7df64d4ac4 [infra] ossfuzz/IMAGE -> gcr.io/oss-fuzz/IMAGE 2017-03-15 18:46:31 -07:00
Mike Aizatsky e6a8c4d6cd [infra] updating usages of base-libfuzzer (#142) 2017-01-03 15:07:49 -08:00
Mike Aizatsky b4279ffd59 [libass] fixing fribidi linking and discovery 2016-12-28 10:39:49 -08:00
Oleg Oshmyan 3ecd63581b [libass] adding more developer emails (#223)
Corresponding to GitHub users @wm4, @astiob and @MrSmile.
2016-12-28 09:08:23 -08:00
Abhishek Arya 659e1a2d92 Update project.yaml 2016-12-28 06:36:37 -08:00
Abhishek Arya 74e80885ee Update project.yaml 2016-12-28 06:36:24 -08:00
Mike Aizatsky f228f66a86 [libass] installing fribidi to /work 2016-12-27 13:34:04 -08:00
Mike Aizatsky 3dd707ed58 [infra] using -lFuzzingEngine instead of -lfuzzer 2016-12-07 11:41:08 -08:00
Mike Aizatsky cf248c4759 [infra] making shallow git clones. fixes #42 2016-11-29 12:55:45 -08:00
Mike Aizatsky a1f645866d [infra] target.yaml -> project.yaml 2016-11-29 11:03:26 -08:00
Mike Aizatsky a143b9b39a [infra] renaming targets/ to projects/ 2016-11-29 10:55:25 -08:00