Bug 1171067: Properly read 64bits header's size. r=kentuckyfriedtakahe

This commit is contained in:
Jean-Yves Avenard 2015-06-10 19:38:13 +10:00
parent 164cbeebb0
commit 2def0bc43d

View File

@ -71,7 +71,7 @@ Box::Box(BoxContext* aContext, uint64_t aOffset, const Box* aParent)
headerRange.mEnd + sizeof(bigLength));
if ((mParent && !mParent->mRange.Contains(bigLengthRange)) ||
!byteRange->Contains(bigLengthRange) ||
!mContext->mSource->CachedReadAt(aOffset, bigLength,
!mContext->mSource->CachedReadAt(aOffset + 8, bigLength,
sizeof(bigLength), &bytes) ||
bytes != sizeof(bigLength)) {
return;