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
9fbe80777e
skia2
/
resources
/
sksl
/
shared
/
Ossfuzz28794.sksl
6 lines
96 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix for fuzzer-discovered crash with swizzles. We need to rescan after optimizing away expressions that might exist in the CFG/definition map, since we are rebuilding them from scratch and not just stripping off excess parts from them. Change-Id: I843a2ea3fc38428e7c0bd0e2bf7a7d41101345e3 Bug: oss-fuzz:28794 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344972 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2020-12-22 13:59:51 +00:00
void main() {
int i = int(sqrt(1));
Update tests which mix int and float types without casts. These need to change because type coercion in SkSL is about to become more strict in a followup CL; we are disallowing expressions that mix ints and floats without a cast. Change-Id: I0f6c3cba53fb67078f447345338262c153236c51 Bug: skia:11164 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/353102 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2021-01-13 18:50:18 +00:00
(i)*int4(i=3).x1.x;
Fix for fuzzer-discovered crash with swizzles. We need to rescan after optimizing away expressions that might exist in the CFG/definition map, since we are rebuilding them from scratch and not just stripping off excess parts from them. Change-Id: I843a2ea3fc38428e7c0bd0e2bf7a7d41101345e3 Bug: oss-fuzz:28794 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344972 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2020-12-22 13:59:51 +00:00
sk_FragColor.x = half(i);
}
Reference in New Issue
Copy Permalink