Skip to content

Commit

Permalink
fix: out-of-border access
Browse files Browse the repository at this point in the history
  • Loading branch information
Kpada authored and stenzek committed Jul 7, 2024
1 parent d372609 commit e4470a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/cd_image_m3u.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e4470a9

Please sign in to comment.