Fix Perlin noise fuzz issue
authorrobertphillips <robertphillips@google.com>
Mon, 27 Jun 2016 19:26:29 +0000 (12:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Jun 2016 19:26:29 +0000 (12:26 -0700)
commit6a16fd33da4e77ced87a46fa346a6095ceea8899
treef9563ae8f72004c29e581668330cf354750e15f9
parent5354e4a0c2b629b5336fbd3743944fe059514141
Fix Perlin noise fuzz issue

The main "fix" here was that the assert was checking the un-clamped input value rather than the clamped value.

The SkValidatingReadBuffer.cpp change was required to get the reproducing fuzz test case to complete.

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2107453002

Review-Url: https://codereview.chromium.org/2107453002
src/core/SkValidatingReadBuffer.cpp
src/effects/SkPerlinNoiseShader.cpp