2d3f5e8f25
The fuzzer detected a serious parsing error; a struct containing a vardecl with multiple declarations would interpret arrays incorrectly. An array would be applied to ALL variables in the decl after its initial appearance. That is, `int w, x[10], y, z;` would be interpreted as `int w, x[10], y[10], z[10];`. The fuzzer caught this by putting two arrayed variables in a row; the second variable was interpreted as a nested array, which led to an assertion. This CL contains a simple hand-written test case demonstrating the bug, with the fix coming in a followup. Change-Id: I42d7372ba77fa1528ae24eb8c29a2e5903784139 Bug: oss-fuzz:37622 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/441878 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
5 lines
98 B
GLSL
5 lines
98 B
GLSL
### Compilation failed:
|
|
|
|
error: 10: type mismatch: '=' cannot operate on 'half[3]', 'int'
|
|
1 error
|