This website requires JavaScript.
ReeceSX
Explore
Aurora
Register
Sign In
AuroraMiddleware
/
skia2
Watch
1
Star
0
Fork
0
You've already forked skia2
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
508eba7578
skia2
/
tests
/
sksl
/
errors
/
golden
/
InVarWithInitializerExpression.glsl
5 lines
93 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Report an SkSL error if an `in` var has an initializer expression. This resolves the fuzzer error, as the program will fail compilation before reaching the SPIR-V translation stage at all. Change-Id: Ia73af497b1f57314a29878f2d2a29dc80186e630 Bug: oss-fuzz:27300 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/333130 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
2020-11-09 16:19:02 +00:00
### Compilation failed:
Add unit test for fuzzer-detected error with in vars. `in` vars shouldn't support initializer expressions at all. The fuzzer noticed that dead-stripping interacts poorly with `in` var initializer expressions, which makes sense because it's an unsupported and untested path. In a followup CL, lines 1 and 3 will both become errors. Change-Id: Ibb64ca319a046b040eea976acb6798a1402451de Bug: oss-fuzz:27300 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/333128 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>
2020-11-09 15:50:35 +00:00
Report an SkSL error if an `in` var has an initializer expression. This resolves the fuzzer error, as the program will fail compilation before reaching the SPIR-V translation stage at all. Change-Id: Ia73af497b1f57314a29878f2d2a29dc80186e630 Bug: oss-fuzz:27300 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/333130 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
2020-11-09 16:19:02 +00:00
error: 1: 'in' variables cannot use initializer expressions
1 error
Reference in New Issue
Copy Permalink