dolphin/Source/Core/VideoBackends
JosJuice 5c9bb80638 Memmap: Replace GetPointer with GetSpanForAddress
To ensure memory safety, callers of GetPointer have to perform a bounds
check. But how is this bounds check supposed to be performed?
GetPointerForRange contained one implementation of a bounds check, but
it was cumbersome, and it also isn't obvious why it's correct.

To make doing the right thing easier, this commit changes GetPointer to
return a span that tells the caller how many bytes it's allowed to
access.
2024-04-20 18:31:08 +02:00
..
D3D Fix out of bounds accesses for invalid vertex component formats 2024-04-04 12:50:34 -07:00
D3D12 Fix out of bounds accesses for invalid vertex component formats 2024-04-04 12:50:34 -07:00
D3DCommon Video: implement color correction to match the NTSC and PAL color spaces (and gamma) that GC and Wii targeted. 2023-06-19 01:34:42 +03:00
Metal Fix out of bounds accesses for invalid vertex component formats 2024-04-04 12:50:34 -07:00
Null VideoCommon: Use std::span for BoundingBox::Write() 2023-12-09 16:33:21 -05:00
OGL Fix out of bounds accesses for invalid vertex component formats 2024-04-04 12:50:34 -07:00
Software Memmap: Replace GetPointer with GetSpanForAddress 2024-04-20 18:31:08 +02:00
Vulkan Fix out of bounds accesses for invalid vertex component formats 2024-04-04 12:50:34 -07:00
CMakeLists.txt