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
144 B
Plaintext
10 lines
144 B
Plaintext
// Expect 6 errors
|
|
|
|
void a[2];
|
|
void[2] b;
|
|
|
|
void[2] funcF() {}
|
|
void funcG() { void g[2]; }
|
|
void funcH() { void[2] h; }
|
|
void funcI() { void[2]; }
|