skia2/fuzz
Mike Klein 7ffa40cedb FuzzPath -> FuzzNicePath
This CL renames FuzzPath() to FuzzNicePath() to remind us that it's
meant to create paths that a user could reasonably want to create
in good faith, to pass to Skia via its API, etc.

Then, add fuzz_nice_rect(), and have FuzzNicePath() use that to create
its rectangles and use FuzzNiceMatrix() to create its matrices, just
like we already use FuzzNiceRRect() to create rounded rectangles and
FuzzNicePath() itself to create sub-paths.

Using fuzz_nice_rect() should be the fix for the attached bug.
Using FuzzNiceMatrix() is by analogy, more preemptive.

While we're at it, rename BuildPath to FuzzEvilPath, so the contrast
with FuzzNicePath is more clear.

Update the assertions that we create a valid path in FuzzNicePath()
to tell us where things went wrong if they do.

Bug: oss-fuzz:10667, skia:8384
Change-Id: I6d802182a62815cd969c65cf0479609f64b1da55
Reviewed-on: https://skia-review.googlesource.com/156840
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Auto-Submit: Mike Klein <mtklein@google.com>
2018-09-25 17:04:00 +00:00
..
oss_fuzz FuzzPath -> FuzzNicePath 2018-09-25 17:04:00 +00:00
coverage remove SkColorSpace::MakeICC() fuzzer 2018-05-23 16:31:11 +00:00
Fuzz.cpp Make fuzz::next overloads more consistent 2018-09-17 19:20:51 +00:00
Fuzz.h Make fuzz::next overloads more consistent 2018-09-17 19:20:51 +00:00
FuzzCanvas.cpp FuzzPath -> FuzzNicePath 2018-09-25 17:04:00 +00:00
FuzzCommon.cpp FuzzPath -> FuzzNicePath 2018-09-25 17:04:00 +00:00
FuzzCommon.h FuzzPath -> FuzzNicePath 2018-09-25 17:04:00 +00:00
FuzzDrawFunctions.cpp Reland "SkDEBUGF: use __VA_ARGS__" 2018-07-18 15:37:41 +00:00
FuzzEncoders.cpp Add Encoder fuzzers 2018-03-30 19:31:56 +00:00
FuzzGradients.cpp Reland "SkDEBUGF: use __VA_ARGS__" 2018-07-18 15:37:41 +00:00
FuzzMain.cpp Update autodetects for newer fuzzers 2018-09-24 13:09:56 +00:00
FuzzParsePath.cpp test,tools: whitespace changes for clang-format 2018-09-19 17:50:51 +00:00
FuzzPathMeasure.cpp FuzzPath -> FuzzNicePath 2018-09-25 17:04:00 +00:00
FuzzPathop.cpp FuzzPath -> FuzzNicePath 2018-09-25 17:04:00 +00:00
FuzzPolyUtils.cpp Rip out variable offsetting 2018-09-05 19:54:31 +00:00
FuzzRegionOp.cpp Make fuzz::next overloads more consistent 2018-09-17 19:20:51 +00:00