diff options
author | Kevin Lubick <kjlubick@google.com> | 2018-09-17 14:46:57 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-09-17 19:20:51 +0000 |
commit | bc9a1a837d957165bfa985c1ccde6a057a0fdfd5 (patch) | |
tree | 58b4f4673947ace29ecd1332079c452153453763 /BUILD.gn | |
parent | 9947752efc450ab2872fe93ff6880da85138cc42 (diff) | |
download | skqp-bc9a1a837d957165bfa985c1ccde6a057a0fdfd5.tar.gz |
Make fuzz::next overloads more consistent
Some oss-fuzz bugs (like the linked one) would not reproduce
in Skia proper due to the fact that there were subtle overloads
of the various Fuzz::next() methods in FuzzCanvas.cpp that
were pulled in in Skia proper, but not oss-fuzz.
This puts all of them in to FuzzCommon.h and makes the
matrix and rrect ones opt-in (fuzz_matrix, fuzz_rrect).
Additionally, this renames fuzz.cpp -> FuzzMain.cpp so we
can properly include Fuzz.cpp in oss-fuzz without
having two mains.
Bug: oss-fuzz:10378
Change-Id: I6cf9afb471781b9fadb689482109a1e5662358b5
Reviewed-on: https://skia-review.googlesource.com/154900
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1753,17 +1753,18 @@ if (skia_enable_tools) { "tools/debugger", ] sources = [ + "fuzz/Fuzz.cpp", "fuzz/FuzzCanvas.cpp", "fuzz/FuzzCommon.cpp", "fuzz/FuzzDrawFunctions.cpp", "fuzz/FuzzEncoders.cpp", "fuzz/FuzzGradients.cpp", + "fuzz/FuzzMain.cpp", "fuzz/FuzzParsePath.cpp", "fuzz/FuzzPathMeasure.cpp", "fuzz/FuzzPathop.cpp", "fuzz/FuzzPolyUtils.cpp", "fuzz/FuzzRegionOp.cpp", - "fuzz/fuzz.cpp", "fuzz/oss_fuzz/FuzzAnimatedImage.cpp", "fuzz/oss_fuzz/FuzzImage.cpp", "fuzz/oss_fuzz/FuzzImageFilterDeserialize.cpp", |