tests: Fix out-of-bounds access (#7085)
This commit is contained in:
parent
4ac10c4a9d
commit
597297ffb4
@ -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,
|
shader.shader_setup->uniforms.f[i] = {color_f24, color_f24, color_f24,
|
||||||
Pica::f24::One()};
|
Pica::f24::One()};
|
||||||
f_uniforms[i] = {color, color, color, 1.f};
|
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<u8>((i - 0x60) * 0x10);
|
const u8 color = static_cast<u8>((i - 0x60) * 0x10);
|
||||||
shader.shader_setup->uniforms.i[i - 0x60] = {color, color, color, 255};
|
shader.shader_setup->uniforms.i[i - 0x60] = {color, color, color, 255};
|
||||||
} else if (i >= 0x70 && i < 0x80) {
|
} else if (i >= 0x70 && i < 0x80) {
|
||||||
|
Loading…
Reference in New Issue
Block a user