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:
parent
c30382fe05
commit
75b7526a2d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user