mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
fix: out-of-border access
This commit is contained in:
parent
d372609bdc
commit
e4470a9929
|
@ -161,7 +161,7 @@ bool CDImageM3u::SwitchSubImage(u32 index, Error* error)
|
|||
|
||||
std::string CDImageM3u::GetSubImageMetadata(u32 index, std::string_view type) const
|
||||
{
|
||||
if (index > m_entries.size())
|
||||
if (index >= m_entries.size())
|
||||
return {};
|
||||
|
||||
if (type == "title")
|
||||
|
|
Loading…
Reference in a new issue