aboutsummaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorKevin Lubick <kjlubick@google.com>2018-09-17 14:46:57 -0400
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2018-09-17 19:20:51 +0000
commitbc9a1a837d957165bfa985c1ccde6a057a0fdfd5 (patch)
tree58b4f4673947ace29ecd1332079c452153453763 /BUILD.gn
parent9947752efc450ab2872fe93ff6880da85138cc42 (diff)
downloadskqp-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.gn3
1 files changed, 2 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index f84dbaed00..93addb8d62 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -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",