aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz/oss_fuzz
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-07-10 10:57:54 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-10 15:25:35 +0000
commit1d314433ffd5a5149438dd82d10c04736325004d (patch)
tree618f7311c51690a0a624be89f8e95bae508691e4 /fuzz/oss_fuzz
parent3be2e10ce534a9bf8eb008d3704be26b2ba04437 (diff)
fix line intersect divide by zero
Test filinmangust14 exposes two problems: - finding top of contour can expose divide by zero - joining partial contour results can add diagonal The latter makes the test return the wrong result, and has not been seen in other tests. The fix is to join disconnected contours by only following the contours provided as input. Working on that. The former bug is more straight-forward; just don't try to compute axis-aligned intersection if the denominator is zero. All existing tests prior to the new one work with this change. R=caryclark@google.com Bug: skia:8125 Change-Id: Ic878d090066708d9baca8475f27d4d5aba2294cc Reviewed-on: https://skia-review.googlesource.com/140121 Reviewed-by: Cary Clark <caryclark@skia.org> Commit-Queue: Cary Clark <caryclark@skia.org> Auto-Submit: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'fuzz/oss_fuzz')
0 files changed, 0 insertions, 0 deletions