fix: out-of-border access

pull/3245/head
Nik Chizhov 8 months ago committed by Connor McLaughlin
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…
Cancel
Save