6d4577bc52
Rough first pass at SkParagraph fuzzing. Lots of things not yet fuzzed. --FontCollection cribbed from SkParagraphTest --Current flow: ---Fuzz ParagraphStyle ---Add text and style some random small number of times. ---Text is either ASCII, unicode, or 'Zalgo'. Although there are many todos, want to go ahead and submit this ~unchanged so the existing test cases that have found bugs are not invalidated by a changing binary. Change-Id: I38adca5fa79cfb20068fdf2fb431f90de55a2afc Bug: skia:10894 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/336438 Commit-Queue: Weston Tracey <westont@google.com> Reviewed-by: Kevin Lubick <kjlubick@google.com> |
||
---|---|---|
.. | ||
oss_fuzz | ||
coverage | ||
Fuzz.cpp | ||
Fuzz.h | ||
FuzzCanvas.cpp | ||
FuzzCommon.cpp | ||
FuzzCommon.h | ||
FuzzCreateDDL.cpp | ||
FuzzDrawFunctions.cpp | ||
FuzzEncoders.cpp | ||
FuzzGradients.cpp | ||
FuzzMain.cpp | ||
FuzzParsePath.cpp | ||
FuzzPath.cpp | ||
FuzzPathMeasure.cpp | ||
FuzzPathop.cpp | ||
FuzzPolyUtils.cpp | ||
FuzzRegionOp.cpp | ||
FuzzRRect.cpp | ||
FuzzSkParagraph.cpp | ||
README.md |
We fuzz Skia using oss-fuzz, which in turn uses fuzzing engines such as libfuzzer, afl-fuzz, hong-fuzz and others.
We define a fuzzer
to be a targeted bit of code that takes a randomized input and executes code
in a specific area. For example, we have a codec fuzzer which takes a mutated png/jpeg or similar
file and attempts to turn it into an SkImage
. We also have a canvas fuzzer which takes in a random
set of bytes and turns them into calls on SkCanvas
.
See [../site/dev/testing/fuzz.md] for more information on building and running fuzzers.
See also: