summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorLink Mauve <linkmauve@linkmauve.fr>2026-09-04 15:32:11 +0200
committerLink Mauve <linkmauve@linkmauve.fr>2026-09-04 15:37:36 +0200
commitf80a78869a3babd939f7a85ae60726f671b45c39 (patch)
tree45c6efc29394b4dce70ad56e794ad8e173d6ddc4 /Source/Core/VideoCommon/BPStructs.cpp
parentca8c6ee45e419296226e4da8c2b2adaaf54e0299 (diff)
HW/EXI: Don’t dereference one item past end of array
Dolphin would previously crash while accessing &buffer[got], as if we were trying to access that element instead of just obtaining a pointer to it. The proper solution is to obtain a pointer to the first element, and only add the offset we want to get the range. Here is the printed message: /usr/include/c++/16/array:210: constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) [with _Tp = char; long unsigned int _Nm = 128; reference = char&; size_type = long unsigned int]: Assertion '__n < this->size()' failed. The stack trace originates from: Source/Core/Core/HW/EXI/EXI_DeviceGecko.cpp:139
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
0 files changed, 0 insertions, 0 deletions