mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05: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
|
std::string CDImageM3u::GetSubImageMetadata(u32 index, std::string_view type) const
|
||||||
{
|
{
|
||||||
if (index > m_entries.size())
|
if (index >= m_entries.size())
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
if (type == "title")
|
if (type == "title")
|
||||||
|
|
Loading…
Reference in a new issue