Skip to content

Commit

Permalink
Prevent bounds exception in QuickTimeDataHandler
Browse files Browse the repository at this point in the history
Contributes to #561
  • Loading branch information
drewnoakes committed Apr 3, 2022
1 parent b30691e commit d54596b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ protected void processKeys(@NotNull SequentialByteArrayReader reader) throws IOE
@Override
protected void processData(@NotNull byte[] payload, @NotNull SequentialByteArrayReader reader) throws IOException
{
if (currentIndex >= keys.size()) {
return;
}

int type = reader.getInt32();
// 4 bytes: locale indicator
reader.skip(4);
Expand Down

0 comments on commit d54596b

Please sign in to comment.