Merge pull request #3495 from simophin/patch-1

Guard against out-of-range timestamp
This commit is contained in:
ojw28 2017-11-27 20:43:15 +00:00 committed by GitHub
commit ec2fbe5d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,7 @@ import java.util.concurrent.atomic.AtomicInteger;
if (PRIV_TIMESTAMP_FRAME_OWNER.equals(privFrame.owner)) {
System.arraycopy(privFrame.privateData, 0, id3Data.data, 0, 8 /* timestamp size */);
id3Data.reset(8);
return id3Data.readLong();
return id3Data.readLong() & ((1L << 33) - 1L);
}
}
}