skia2/resources/sksl/errors/ArrayOfInvalidSize.sksl
John Stiles 81c86e8608 Fix fuzzer-discovered assertion with nonsense array sizes.
Change-Id: I7512491f55c10118f0ab058500f6ce9b5b8545cd
Bug: oss-fuzz:40557
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/466296
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-11-01 15:26:14 +00:00

22 lines
587 B
Plaintext

void a1() { float[-2]; }
void b1() { float[-1]; }
void c1() { float[0]; }
void d1() { float[1.5]; }
void e1() { float[4000000000]; }
void f1() { float[true]; }
void g1() { float[false]; }
void h1() { float[int2(2, 2)]; }
void i1() { float[]; }
void j1() { float[int3(4000000000)]; }
void a2() { float x[-2]; }
void b2() { float x[-1]; }
void c2() { float x[0]; }
void d2() { float x[1.5]; }
void e2() { float x[4000000000]; }
void f2() { float x[true]; }
void g2() { float x[false]; }
void h2() { float x[int2(2, 2)]; }
void i2() { float x[]; }
void j2() { float x[int3(4000000000)]; }