From ff004c1b12f9cd8aad6b9834d481d129e4ba13ed Mon Sep 17 00:00:00 2001 From: martinarjovsky Date: Mon, 16 Jun 2025 18:31:34 +0200 Subject: [PATCH] Fix bug in translator_fuzzer.cpp Fix bug where in fuzz harness where we were checking spec instead of type. --- src/compiler/fuzz/translator_fuzzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/fuzz/translator_fuzzer.cpp b/src/compiler/fuzz/translator_fuzzer.cpp index 1180ad12625..654eeff4982 100644 --- a/src/compiler/fuzz/translator_fuzzer.cpp +++ b/src/compiler/fuzz/translator_fuzzer.cpp @@ -83,7 +83,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) return 0; } - if (spec != SH_GLES2_SPEC && type != SH_WEBGL_SPEC && spec != SH_GLES3_SPEC && + if (spec != SH_GLES2_SPEC && spec != SH_WEBGL_SPEC && spec != SH_GLES3_SPEC && spec != SH_WEBGL2_SPEC) { return 0;