Commit Graph

70 Commits

Author SHA1 Message Date
Kevin Lubick 346ef66a26
[skia] Add Region Op fuzzer (#5527) 2021-03-29 12:10:16 -07:00
wjtracey 0915194f24
mv instead of cp skia build.sh artifacts (#5367)
* mv instead of cp skia build.sh artifacts

Hopefully this will reduce the footprint so skia builds begin passing the CQ again.

* Update build.sh

Return some moves to copies, since the same corpus and binary is sometimes reused, slight reordering for clarity.

* Update build.sh with mv of reused corpus
2021-03-20 23:28:35 -07:00
jonathanmetzman f5901265d1
[TSAN] Support TSAN (#5266)
We aren't planning on suppoting TSAN on ClusterFuzz.
But we can support in CIFuzz since Skia wants it.
2021-03-02 09:20:40 -08:00
wjtracey b1be6e7bb6
[skia] Add api_ddl_threading fuzzing (#5257) 2021-03-02 05:36:51 -08:00
van Hauser 4bb61df790
Final afl++ integration (#5191)
* final afl++ integration

* remove afl++ cmplog tests

* update afl++ commit id

* support rebuild

* llvm 13 workaround

* apply fix for llvm 13

* fix nits

* Fix nits.

* Fix name nit.

* update commit id

* update commit id

* update commit id to stable

Co-authored-by: Abhishek Arya <inferno@chromium.org>
2021-02-18 12:55:07 -08:00
van Hauser 458dd61bbb
afl++ CMPLOG test (#5130)
* afl++ CMPLOG test

* fixes
2021-02-07 09:42:13 -08:00
wjtracey 1c71a29489
Add sk_paragraph fuzzing. (#5117) 2021-02-04 11:46:57 -08:00
Kevin Lubick 7dc92a6cb5
[skia] Fix MSAN build and remove link limit for CIFuzz (#4588)
* [skia] Fix MSAN build and remove link limit for CIFuzz

* Fix unbound var
2020-11-02 08:38:08 -08:00
Kevin Lubick 72e6ad992b
[skia] Use bin/gn (#4469) 2020-09-22 13:35:34 -07:00
Kevin Lubick 8479af6826
[skia] Remove patches (#4446)
* [skia] Remove patches

* space
2020-09-15 16:31:42 -07:00
werdnaH 5125d29c64
Move zip and json to data folder (#4293)
Do this so that CIFuzz will work.

Co-authored-by: Zepeng Hu <zepenghu@google.com>
Co-authored-by: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>
2020-08-13 15:31:01 -07:00
werdnaH 5415fe155d
[Skia] Update SKP Fuzzer (#4245)
* Update SKP Fuzzer

* fixed cf_map

Co-authored-by: Zepeng Hu <zepenghu@google.com>
2020-07-31 19:41:31 -07:00
Kevin Lubick e253e5ff4c
[skia] Remove API skdescriptor fuzzer (#4244) 2020-07-31 14:08:32 -07:00
bungeman 695760805c
[skia] Further limit number of concurrent links. (#4228)
Reducing the number of concurrent link steps to the number of cpus does
not appear to have made much difference to the success of the Skia
project build. Limit the number of concurrent links to one in an attempt
to avoid running out of memory. If issues persist it is likely the bot
running this simply does not have enough memory to run the linker step.

This change is speculative since these builds have been working on the
CI bots and only failing on the oss-fuzz build.

Bug: oss-fuzz:23438,oss-fuzz:24345
2020-07-30 07:55:25 -07:00
bungeman 1753fe12bf
[skia] Limit concurrent link steps. (#4217)
The number of link build steps in the Skia build is currently not
limited and may be leading to the current failures where the linker is
killed with a signal. This changes that to limit the number of
concurrent linker steps to the number of cpus available. If there
continue to be issues it may be necessary to implement a hard limit.

Bug: oss-fuzz:23438,oss-fuzz:24345
2020-07-29 17:25:37 -07:00
werdnaH 69869e098e
Add DDL Fuzzer (#4202)
Co-authored-by: Zepeng Hu <zepenghu@google.com>
2020-07-27 17:24:21 -07:00
bungeman b4e48c0d3b
[skia] Stop using gold. (#4164)
The gold linker was forced when the system linker stopped linking the
Skia build. It seems that the gold linker is now running into issues, so
attempt to switch back.
2020-07-20 22:54:59 -07:00
bungeman fde2cbfdff
[skia] Pass SWIFTSHADER_EMIT_COVERAGE for coverage. (#4152)
The SwiftShader build seems to want SWIFTSHADER_EMIT_COVERAGE set or it
will do things that interfere with a coverage build. Use this to
simplify the SwuftShader build a bit and hopefully restore the coverage
build.
2020-07-17 10:30:06 -07:00
werdnaH c8a9c08c09
[Skia] Add SkRuntimeEffect Fuzzer (#4108)
* Add SkRuntimeEffect Fuzzer

* fixed typo

* fixed the zip name

* fixed zip name

* fixed zip name

Co-authored-by: Zepeng Hu <zepenghu@google.com>
2020-07-10 19:26:35 -07:00
werdnaH df0ea93918
Add SkSVGCanvas api Fuzzer (#4061)
* add svg api fuzzer

* fixed build.sh

Co-authored-by: Zepeng Hu <zepenghu@google.com>
2020-07-01 14:59:11 -07:00
werdnaH 63868cba90
[skia] Remove Options Files with Only max_len Flag (#3987)
* [skia] add svg fuzzer

* [skia] removed options file

* [skia] removed options file

* [skia] removed all options files with only max_len

* delete options

* fixed cp statements

Co-authored-by: Zepeng Hu <zepenghu@google.com>
2020-06-21 16:35:58 -07:00
bungeman ca4277eb5a
[skia] Fix coverage build to use Ninja. (#4005)
The other builds were moved to Ninja, this one needs to be as well.

Bug: oss-fuzz:23438
2020-06-17 12:50:25 -07:00
bungeman a392e2fd09
[skia] Build SwiftShader with Ninja. (#3979)
Ninja monitors the load and not just the number of processes, so can
hopefully build faster without overloading.
2020-06-12 14:43:58 -07:00
werdnaH ad4557e4ad
[skia] add svg fuzzer (#3976)
* [skia] add svg fuzzer

* [skia] removed options file

* [skia] removed options file

Co-authored-by: Zepeng Hu <zepenghu@google.com>
2020-06-12 12:50:56 -07:00
bungeman b6c0816160
[skia] Build SwiftShader without UBSAN. (#3977)
By default a cmake based build puts user provided flags at the beginning
of a compiler invocation, giving them lowest priority. This makes it
quite difficult to add the required -fno-sanitize=vptr flag since it
will be placed before -fsanitize=undefined in a SWIFTSHADER_UBSAN build.
To make this work will require upstream changes to SwiftShader's build.

However, it is not necessary to build SwiftShader with the undefined
behavior sanitizer in order to fuzz Skia for issues. (This is only
required for the memory sanitizer which fortunately works.) As a result,
build SwiftShader without the sanitizer in the Skia undefined sanitizer
fuzzer build.
2020-06-12 09:35:33 -07:00
bungeman 7002484fd4
[skia] Build fix for upstream build changes. (#3967)
* [skia] Update diff for upstream change.

SkReadBuffer::getArrayCount() implementation changed, so update the
diff.

* [skia] Build fix for upstream build changes.

Skia is changing its build a little bit. 'skia_enable_fontmgr_custom'
has become 'skia_enable_fontmgr_custom_directory' (since that is what
it actually did) and skia_enable_fontmgr_custom_embedded has been added.

* [skia] Update SwiftShader to something not so old.

Skia builds it without submodules. Only build libGLESv2 and libEGL
instead of building everything, which isn't needed and takes a long
time. SwiftShader already has a checked-in build/ directory, so use a
different directory for building. Limit the number of make jobs to avoid
'Cannot allocate memory' errors. To build SwiftShader with a sanitizer,
the cmake define is now like SWIFTSHADER_XSAN.
2020-06-11 22:50:15 -07:00
Kevin Lubick d0da30e928 [skia] Add skdescriptor (#2970)
* [skia] Add skdescriptor fuzzer

* copy

* add second fuzzer

* dock

* build
2019-10-22 12:16:57 -07:00
jonathanmetzman 16e79e1bd5
[skia] Temporarily use gold to hack around clang regression (#2782) 2019-08-29 23:31:53 -07:00
jonathanmetzman 53c09d30f6
Update patch to fix build and migrate to -fsanitize=fuzzer (#2324)
Update skia.diff to fix build breakage.
Also, use $LIB_FUZZING_ENGINE instead of -lFuzzingEngine to start using -fsanitize=fuzzer
2019-04-16 11:52:23 -07:00
Kevin Lubick c1068851e8 [skia] add sksl2pipeline (#2245) 2019-03-18 17:13:35 -07:00
Kevin Lubick 169cae111a add sksl fuzzers (#2228) 2019-03-11 13:16:45 -07:00
Kevin Lubick af5a3f857f [skia] re-enable checks (#2064) 2019-01-02 06:42:52 -08:00
Kevin Lubick 9fa6d673de Disable empty expression check (#2055) 2018-12-27 09:31:07 -08:00
Kevin Lubick 0cc33f34a5 [skia] Avoid system fonts (#2030)
Avoid system fonts
2018-12-14 09:35:44 -08:00
Kevin Lubick 0de389a829 Switch to the wuffs decoder (#2005) 2018-12-05 06:47:56 -08:00
Kevin Lubick ea855f048a [skia] Add more image codec fuzzers (#1882) 2018-10-17 06:42:10 -07:00
Kevin Lubick 93eec08bbc Add Polyutils fuzz target (#1867) 2018-10-11 07:20:30 -07:00
Max Moroz 7703e360de
[infra] Remove sancov and rename "profile" to "coverage". (#1839)
* [infra] Remove sancov and rename "profile" to "coverage".

* Bring coverage flags back.

* Update projects files that rely on SANITIZER="profile".
2018-10-01 06:43:21 -07:00
jonathanmetzman 018da99e99
[Skia] Speculative fix for build failure. (#1825) 2018-09-18 14:43:09 -07:00
Kevin Lubick 9bac6ac046 [skia] Add Pathop fuzzer (#1775) 2018-08-30 15:03:06 -07:00
jonathanmetzman 0536801fd1
[skia] Use Skia's clone of SwiftShader and speculative fix for broken build (#1576)
Don't explicityly clone SwiftShader in the Dockerfile, since Skia
does that itself.
Also, make a speculative fix for a build issue where builders get
confused by the current working directory.
2018-06-26 13:23:44 -07:00
jonathanmetzman f5f98cf608
Build Skia with SwiftShader (#1573)
This requires  building SwiftShader as well as changes to skia's
build. Reenables fuzzers that were disabled for AFL since we no
longer need to patch the binaries.
Also optimize invocations of git clone by adding --depth 1.
2018-06-26 10:00:23 -07:00
jonathanmetzman 67fcf72e97
[skia] Add json dictionary from AFL to skjson (#1498) 2018-06-08 14:08:45 -07:00
Kevin Lubick cdf81af81c [skia] Add skjson fuzzer (#1497) 2018-06-08 13:13:50 -07:00
Kevin Lubick b554f42193 [skia] Fix afl build (#1489) 2018-06-05 06:17:13 -07:00
Kevin Lubick 47be6976c2 [skia] Opt all fuzzers into GPU build (#1484)
Also remove 3 more fuzzers from afl engine because of issues with patchelf (see #1338)
2018-06-04 09:33:22 -07:00
Kevin Lubick 0e022eb344 [skia] Remove mem contraint checks from textblob deserialize (#1407) 2018-05-09 09:17:03 -07:00
Kevin Lubick cbabc263ff [skia] Add Skottie fuzz target (#1401) 2018-05-07 07:43:46 -07:00
Kevin Lubick 0743ae024c [skia] Add custom help url (#1393) 2018-05-02 07:12:17 -07:00
jonathanmetzman 93e8f3561e
[skia] Disable AFL builds of mock gpu fuzzer (#1383)
After building AFL fuzzers we will now check if they crash immediately before
uploading a build to CF. That means we can't build broken fuzzers or else
the entire build breaks.
2018-04-30 12:25:33 -07:00