7253a201a3
The fuzzer noticed insufficient guards in IndexExpression::Convert when converting an array size from an IntLiteral to a SKSL_INT. We had code in IRGenerator which did this properly, so I moved our array-size conversion logic into SkSLType and had IndexExpression share it. Also, a variety of tests around similar error conditions were added. Change-Id: I51529dea25f9029f81ae236511610069d66be29f Bug: oss-fuzz:37462 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/441236 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
10 lines
334 B
GLSL
10 lines
334 B
GLSL
### Compilation failed:
|
|
|
|
error: 3: type 'void' not allowed in this context
|
|
error: 4: type 'void' not allowed in this context
|
|
error: 6: type 'void' may not be used in an array
|
|
error: 7: type 'void' not allowed in this context
|
|
error: 8: type 'void' not allowed in this context
|
|
error: 9: type 'void' may not be used in an array
|
|
6 errors
|