diff options
author | Kevin Lubick <kjlubick@google.com> | 2018-03-30 15:05:13 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-30 19:31:56 +0000 |
commit | e4be55dc28479a0ee103e5d65cd00c441feb5ff2 (patch) | |
tree | 5040210babb9a4877247f90024fa1d53981e02e3 /fuzz/Fuzz.h | |
parent | 6b6fcc78620270ec2dcd57bd520ec500f60f4505 (diff) |
Add Encoder fuzzers
This also includes a helper "fuzzer" for making a corpus.
Point it at an image or folder of images and it will
decode those images and write the SkPixmap's bytes to
disk, such that the fuzzer will be able to read in
those bytes as if it had decoded the image (or gotten
it from another source).
Bug: skia:
Change-Id: Iaf223a39078f2b62908fb47929add5d63f22d973
Reviewed-on: https://skia-review.googlesource.com/117367
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'fuzz/Fuzz.h')
-rw-r--r-- | fuzz/Fuzz.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fuzz/Fuzz.h b/fuzz/Fuzz.h index 203a57fd9f..4fb7396ecc 100644 --- a/fuzz/Fuzz.h +++ b/fuzz/Fuzz.h @@ -62,6 +62,7 @@ private: sk_sp<SkData> fBytes; size_t fNextByte; + friend void fuzz__MakeEncoderCorpus(Fuzz*); }; // UBSAN reminds us that bool can only legally hold 0 or 1. |