skia2/resources/sksl/runtime_errors/InvalidBlendMain.rtb
John Stiles 9c19b9f1ff Fix for fuzzer-discovered out-of-bounds array access.
Change-Id: I4280b5710dd8749ba766ba74d7a8886bc4e024bb
Bug: oss-fuzz:35124
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417200
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-06-10 14:32:10 +00:00

13 lines
515 B
Plaintext

// Runtime blend modes require specific main signatures.
// Ensure that signatures intended for other runtime effect types don't work.
// Expect 5 errors
half4 main() { return half4(1); }
half4 main(half4 src) { return src; }
half4 main(half2 coords, half4 src) { return src; }
half4 main(half2 coords, half4 src, half4 dst) { return src * dst; }
half4 main(half4 src, half4 dst, half4 bonusColor) { return src * dst; }
half4 main(half4 src, half4 dst) { return src * dst; } // the correct signature is allowed