mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-11-26 11:22:36 +00:00
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. |
||
|---|---|---|
| .. | ||
| Clipper.cpp | ||
| Clipper.h | ||
| CMakeLists.txt | ||
| CopyRegion.h | ||
| EfbCopy.cpp | ||
| EfbCopy.h | ||
| EfbInterface.cpp | ||
| EfbInterface.h | ||
| NativeVertexFormat.h | ||
| Rasterizer.cpp | ||
| Rasterizer.h | ||
| SetupUnit.cpp | ||
| SetupUnit.h | ||
| SWBoundingBox.cpp | ||
| SWBoundingBox.h | ||
| SWGfx.cpp | ||
| SWGfx.h | ||
| SWmain.cpp | ||
| SWOGLWindow.cpp | ||
| SWOGLWindow.h | ||
| SWRenderer.cpp | ||
| SWRenderer.h | ||
| SWTexture.cpp | ||
| SWTexture.h | ||
| SWVertexLoader.cpp | ||
| SWVertexLoader.h | ||
| Tev.cpp | ||
| Tev.h | ||
| TextureCache.h | ||
| TextureEncoder.cpp | ||
| TextureEncoder.h | ||
| TextureSampler.cpp | ||
| TextureSampler.h | ||
| TransformUnit.cpp | ||
| TransformUnit.h | ||
| Vec3.h | ||
| VideoBackend.h | ||