skia2/resources/sksl/runtime_errors
John Stiles ff5bb37b72 Replace illegal DSLTypes with Poison types.
The fuzzer has been poking various holes in DSL by intentionally
creating illegal types (e.g. private or not ES2-compatible), then
finding ways to use those types, e.g. constructors or swizzles.

Previously we were mitigating those by calling `reportIllegalTypes` at
the locations where the type was used. Now, we detect the illegal type
usage at the source, and return a poison DSLType. This prevents the
illegal type from leaking out at all, and stops the problem at its
source. It also allows us to remove calls to `reportIllegalTypes`
sprinkled through the code, as those are now redundant.

Change-Id: Id50b50f72849111d80f76e4fdc2cb6094d3009bd
Bug: oss-fuzz:39597
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/455999
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-10-06 00:12:07 +00:00
..
DerivativesES2.rts Allow derivatives in Runtime Effects when ES3 restrictions are off. 2021-08-13 16:45:17 +00:00
ES3Types.rts Replace illegal DSLTypes with Poison types. 2021-10-06 00:12:07 +00:00
FirstClassArrays.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
IllegalArrayOps.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
IllegalIndexing.rts Evaluate single-argument generic intrinsics at compile time. 2021-05-10 14:50:50 +00:00
IllegalOperators.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
IllegalPrecisionQualifiers.rts Honor lowp/mediump/highp precision qualifiers in IRGenerator. 2021-08-04 21:29:10 +00:00
IllegalRecursionComplex.rts Explicitly detect static recursion in SkSL 2021-07-24 00:01:15 +00:00
IllegalRecursionMutual.rts Explicitly detect static recursion in SkSL 2021-07-24 00:01:15 +00:00
IllegalRecursionSimple.rts Explicitly detect static recursion in SkSL 2021-07-24 00:01:15 +00:00
IllegalShaderSampling.rts Remove SkSL sample() intrinsic for Skia object types 2021-09-14 14:18:03 +00:00
IllegalShaderUse.rts Convert internal SkSL to use .eval() 2021-09-03 15:54:54 +00:00
IllegalStatements.rts Implement switch in SkVM. 2021-09-23 19:58:55 +00:00
InvalidBlendMain.rtb Fix for fuzzer-discovered out-of-bounds array access. 2021-06-10 14:32:10 +00:00
InvalidColorFilterFeatures.rtcf Remove layout(marker) from runtime effect SkSL 2021-04-19 18:48:45 +00:00
InvalidColorFilterMain.rtcf Fix for fuzzer-discovered out-of-bounds array access. 2021-06-10 14:32:10 +00:00
InvalidShaderMain.rts Fix for fuzzer-discovered out-of-bounds array access. 2021-06-10 14:32:10 +00:00
LoopConditionErrors.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
LoopExpressionErrors.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
LoopInitializerErrors.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
LoopStructureErrors.rts Increase GetLoopUnrollInfo loop-count limit to 100,000. 2021-09-07 19:28:08 +00:00
Ossfuzz36655.rts Add improved regression test for oss-fuzz:36655. 2021-08-06 13:03:32 +00:00
Ossfuzz38131.rts Fixed illegal interface block reporting 2021-09-07 20:18:00 +00:00
ProgramTooLarge_BlocklessLoops.rts Add program-too-large test using for loops without blocks. 2021-09-15 14:19:00 +00:00
ProgramTooLarge_Extreme.rts Improve overflow checks in CheckProgramUnrolledSize. 2021-09-15 16:42:45 +00:00
ProgramTooLarge_FlatLoop.rts Enforce an upper bound on Runtime Effect program size. 2021-09-02 14:44:34 +00:00
ProgramTooLarge_Functions.rts Enforce an upper bound on Runtime Effect program size. 2021-09-02 14:44:34 +00:00
ProgramTooLarge_NestedLoops.rts Enforce an upper bound on Runtime Effect program size. 2021-09-02 14:44:34 +00:00
ProgramTooLarge_SplitLoops.rts Enforce an upper bound on Runtime Effect program size. 2021-09-02 14:44:34 +00:00
ProgramTooLarge_StackDepth.rts Reject programs which exceed 50 stack frames during size analysis. 2021-09-03 02:41:34 +00:00
UnsupportedTypeFragmentProcessor.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
UnsupportedTypeSampler.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
UnsupportedTypeTexture.rts Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00