Commit ec2fbe5d by ojw28 Committed by GitHub

Merge pull request #3495 from simophin/patch-1

Guard against out-of-range timestamp
parents 818d5a0b 77d8c136
...@@ -306,7 +306,7 @@ import java.util.concurrent.atomic.AtomicInteger; ...@@ -306,7 +306,7 @@ import java.util.concurrent.atomic.AtomicInteger;
if (PRIV_TIMESTAMP_FRAME_OWNER.equals(privFrame.owner)) { if (PRIV_TIMESTAMP_FRAME_OWNER.equals(privFrame.owner)) {
System.arraycopy(privFrame.privateData, 0, id3Data.data, 0, 8 /* timestamp size */); System.arraycopy(privFrame.privateData, 0, id3Data.data, 0, 8 /* timestamp size */);
id3Data.reset(8); id3Data.reset(8);
return id3Data.readLong(); return id3Data.readLong() & ((1L << 33) - 1L);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment