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>
* [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.
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.
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.
Add another version of image_filter_deserialize (image_filter_deserialize_width)
Add a version of image_filter_deserialize that does not use hit counts as a
feature. This may reduce the chances that libFuzzer spends on pathological
executions it will reduce the fitness of loops and recursive code for testcases.
Name it image_filter_deserialize_width since this version cares about the number
of edges it hits (width) rather than the hitcounts on each edge (depth) like
normal fuzz targets.
* Move image_filter_deserialize to skia proper and rename a few things.
* Add region deserialize
* Add textblob_deserialize
* Add path_deserialize
* Fix Dockerfile