From: Hal Canary Date: Wed, 15 Mar 2017 20:58:33 +0000 (-0400) Subject: FuzzCanvas: only valid ChannelSelectors X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~46^2~520 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f49b1e0ad955c437675eae6e8bd64a2e0941e204;p=platform%2Fupstream%2FlibSkiaSharp.git FuzzCanvas: only valid ChannelSelectors BUG=skia:6374 Change-Id: Idf925dbe32298672d7e5debb7e95499269d93706 Reviewed-on: https://skia-review.googlesource.com/9781 Commit-Queue: Kevin Lubick Reviewed-by: Kevin Lubick --- diff --git a/fuzz/FuzzCanvas.cpp b/fuzz/FuzzCanvas.cpp index d59cee0..32ff3ff 100644 --- a/fuzz/FuzzCanvas.cpp +++ b/fuzz/FuzzCanvas.cpp @@ -755,8 +755,8 @@ static sk_sp make_fuzz_imageFilter(Fuzz* fuzz, int depth) { } case 7: { SkDisplacementMapEffect::ChannelSelectorType xChannelSelector, yChannelSelector; - fuzz_enum_range(fuzz, &xChannelSelector, 0, 4); - fuzz_enum_range(fuzz, &yChannelSelector, 0, 4); + fuzz_enum_range(fuzz, &xChannelSelector, 1, 4); + fuzz_enum_range(fuzz, &yChannelSelector, 1, 4); SkScalar scale; bool useCropRect; fuzz->next(&scale, &useCropRect);