mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1171067: Part2. Properly hande box size marked as 0. r=kentuckyfriedtakahe
This indicates that the box goes to the end of the file.
This commit is contained in:
parent
a91eb477eb
commit
9b86221a9f
@ -78,6 +78,10 @@ Box::Box(BoxContext* aContext, uint64_t aOffset, const Box* aParent)
|
||||
}
|
||||
size = BigEndian::readUint64(bigLength);
|
||||
mBodyOffset = bigLengthRange.mEnd;
|
||||
} else if (size == 0) {
|
||||
// box extends to end of file.
|
||||
size = mContext->mByteRanges.LastElement().mEnd - aOffset;
|
||||
mBodyOffset = headerRange.mEnd;
|
||||
} else {
|
||||
mBodyOffset = headerRange.mEnd;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user