dolphin/Source/Core/VideoBackends/Software
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
..
Clipper.cpp
Clipper.h
CMakeLists.txt
CopyRegion.h
EfbCopy.cpp Fix out of bound write in EfbCopy::ClearEfb 2023-12-09 02:15:42 +01:00
EfbCopy.h
EfbInterface.cpp
EfbInterface.h
NativeVertexFormat.h
Rasterizer.cpp
Rasterizer.h
SetupUnit.cpp
SetupUnit.h
SWBoundingBox.cpp VideoCommon: Use std::span for BoundingBox::Write() 2023-12-09 16:33:21 -05:00
SWBoundingBox.h VideoCommon: Use std::span for BoundingBox::Write() 2023-12-09 16:33:21 -05:00
SWGfx.cpp Software/SWGfx: Default destructor in cpp file 2023-12-12 20:33:43 -05:00
SWGfx.h Software/SWGfx: Default destructor in cpp file 2023-12-12 20:33:43 -05:00
SWmain.cpp VideoCommon: Pass WindowSystemInfo to InitBackendInfo 2023-06-08 22:07:39 -07:00
SWOGLWindow.cpp
SWOGLWindow.h
SWRenderer.cpp
SWRenderer.h
SWTexture.cpp
SWTexture.h
SWVertexLoader.cpp Fix out of bounds accesses for invalid vertex component formats 2024-04-04 12:50:34 -07:00
SWVertexLoader.h
Tev.cpp
Tev.h
TextureCache.h
TextureEncoder.cpp Rename bpmem.copyMipMapStrideChannels to bpmem.copyDestStride 2023-11-11 23:32:14 -08:00
TextureEncoder.h
TextureSampler.cpp Memmap: Replace GetPointer with GetSpanForAddress 2024-04-20 18:31:08 +02:00
TextureSampler.h
TransformUnit.cpp
TransformUnit.h
Vec3.h
VideoBackend.h VideoCommon: Pass WindowSystemInfo to InitBackendInfo 2023-06-08 22:07:39 -07:00