Address fuzzer issue

TBR=egdaniel@google.com
Bug: 866775
Change-Id: I6d1fa18c4abfad26bf137e491ca2f3ac6b3d7b03
Reviewed-on: https://skia-review.googlesource.com/143101
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Robert Phillips 2018-07-24 08:23:14 -04:00 committed by Skia Commit-Bot
parent c30382fe05
commit 75b7526a2d

View File

@ -420,7 +420,9 @@ sk_sp<SkFlattenable> SkLightingShaderImpl::CreateProc(SkReadBuffer& buf) {
// Discarding SkShader flattenable params
bool hasLocalMatrix = buf.readBool();
SkAssertResult(!hasLocalMatrix);
if (hasLocalMatrix) {
return nullptr;
}
sk_sp<SkLights> lights = SkLights::MakeFromBuffer(buf);