diff options
author | Zaggy1024 <zaggy1024@gmail.com> | 2023-02-11 20:08:09 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-12 18:47:56 +0100 |
commit | e813b8fd197c60a299dbb96f9b46c18143f46148 (patch) | |
tree | d7b3b43d7d95e07ec83249157ac921846dc67378 /Userland/Libraries/LibVideo | |
parent | dadabb58ebc5ff05c39d43642ff76aea7a843aa1 (diff) | |
download | serenity-e813b8fd197c60a299dbb96f9b46c18143f46148.zip |
LibVideo/Matroska: Fix out-of-bounds access when seeking to cues
Diffstat (limited to 'Userland/Libraries/LibVideo')
-rw-r--r-- | Userland/Libraries/LibVideo/Containers/Matroska/Reader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibVideo/Containers/Matroska/Reader.cpp b/Userland/Libraries/LibVideo/Containers/Matroska/Reader.cpp index a0e9c780f0..70551ae07f 100644 --- a/Userland/Libraries/LibVideo/Containers/Matroska/Reader.cpp +++ b/Userland/Libraries/LibVideo/Containers/Matroska/Reader.cpp @@ -797,8 +797,8 @@ DecoderErrorOr<void> Reader::seek_to_cue_for_timestamp(SampleIterator& iterator, return {}; } - while (index < cue_points.size()) { - auto const& cue_point = cue_points[++index]; + while (++index < cue_points.size()) { + auto const& cue_point = cue_points[index]; dbgln_if(MATROSKA_DEBUG, "Checking future cue point {}ms", cue_point.timestamp().to_milliseconds()); if (cue_point.timestamp() > timestamp) break; |