diff options
| author | Léo Lam <leo@leolam.fr> | 2020-11-21 01:30:02 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2020-11-21 01:30:02 +0100 |
| commit | 83b9feff902580549d7371f1e8f6f99d5f86ade6 (patch) | |
| tree | a0520bd05729035d4f1df97da145448732760495 /Source/Core/AudioCommon/OpenALStream.cpp | |
| parent | fa73b1a23f9b0c5104909de410f9ae533cbf8af4 (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
