From 597297ffb433857d92f8b1487f006ad51988e4cd Mon Sep 17 00:00:00 2001 From: Wunk Date: Sun, 22 Oct 2023 11:07:06 -0700 Subject: [PATCH] tests: Fix out-of-bounds access (#7085) --- src/tests/video_core/shader/shader_jit_x64_compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/video_core/shader/shader_jit_x64_compiler.cpp b/src/tests/video_core/shader/shader_jit_x64_compiler.cpp index cb76decf31..903721400d 100644 --- a/src/tests/video_core/shader/shader_jit_x64_compiler.cpp +++ b/src/tests/video_core/shader/shader_jit_x64_compiler.cpp @@ -420,7 +420,7 @@ TEST_CASE("Address Register Offset", "[video_core][shader][shader_jit]") { shader.shader_setup->uniforms.f[i] = {color_f24, color_f24, color_f24, Pica::f24::One()}; f_uniforms[i] = {color, color, color, 1.f}; - } else if (i >= 0x60 && i < 0x70) { + } else if (i >= 0x60 && i < 0x64) { const u8 color = static_cast((i - 0x60) * 0x10); shader.shader_setup->uniforms.i[i - 0x60] = {color, color, color, 255}; } else if (i >= 0x70 && i < 0x80) {