summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-11-21 01:30:02 +0100
committerLéo Lam <leo@leolam.fr>2020-11-21 01:30:02 +0100
commit83b9feff902580549d7371f1e8f6f99d5f86ade6 (patch)
treea0520bd05729035d4f1df97da145448732760495 /Source/Core/AudioCommon/OpenALStream.cpp
parentfa73b1a23f9b0c5104909de410f9ae533cbf8af4 (diff)
Core/Movie: Fix a likely out-of-bounds read for PanicAlertT
gameID isn't null terminated since it is just an std::array<char, 6> and .data() returns a char* so {fmt} would go way beyond the bounds of the array when it attempts to determine the length of the string. The fix is to pass a std::string_view to {fmt}. This commit adds a GetGameID() function that can also be used to simplify string comparisons.
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
0 files changed, 0 insertions, 0 deletions