skia2/fuzz/oss_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
..
FuzzAnimatedImage.cpp Port 3 API fuzzers to be oss-fuzz friendly 2018-02-27 13:47:28 +00:00
FuzzAPIImageFilter.cpp Port 3 API fuzzers to be oss-fuzz friendly 2018-02-27 13:47:28 +00:00
FuzzDrawFunctions.cpp Port 3 API fuzzers to be oss-fuzz friendly 2018-02-27 13:47:28 +00:00
FuzzGradients.cpp Port 3 API fuzzers to be oss-fuzz friendly 2018-02-27 13:47:28 +00:00
FuzzImage.cpp Port 3 API fuzzers to be oss-fuzz friendly 2018-02-27 13:47:28 +00:00
FuzzImageFilterDeserialize.cpp Break some fuzzer targets out so oss-fuzz can use them 2018-02-09 14:37:41 +00:00
FuzzJPEGEncoder.cpp Add Encoder fuzzers 2018-03-30 19:31:56 +00:00
FuzzJSON.cpp Fold SkJSON into Skia/utils 2018-06-19 18:23:30 +00:00
FuzzMockGPUCanvas.cpp Move oss-fuzz to MockGPUCanvas 2018-04-03 17:02:20 +00:00
FuzzNullCanvas.cpp Port 2 Canvas fuzzers to oss-fuzz 2018-03-21 14:44:28 +00:00
FuzzPathDeserialize.cpp Add guidance for oss-fuzzer for new path version 2018-02-23 13:35:37 +00:00
FuzzPathMeasure.cpp Add oss-fuzz endpoint for PathMeasure 2018-03-12 18:43:38 +00:00
FuzzPathop.cpp Add FuzzPathop to oss-fuzz 2018-08-30 16:47:13 +00:00
FuzzPNGEncoder.cpp Add Encoder fuzzers 2018-03-30 19:31:56 +00:00
FuzzRasterN32Canvas.cpp Port 2 Canvas fuzzers to oss-fuzz 2018-03-21 14:44:28 +00:00
FuzzRegionDeserialize.cpp clean up includes 2018-08-06 14:49:46 +00:00
FuzzRegionSetPath.cpp FuzzPath -> FuzzNicePath 2018-09-25 17:04:00 +00:00
FuzzTextBlobDeserialize.cpp remove unused untested parts of text blob 2018-07-17 17:01:20 +00:00
FuzzWEBPEncoder.cpp Add Encoder fuzzers 2018-03-30 19:31:56 +00:00