mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1254721: Ensure consistency between Cenc offsets and sizes table. r=gerald a=lizzard
MozReview-Commit-ID: E1KbKIIBR87
This commit is contained in:
parent
9db5828ce6
commit
b75f173ff3
@ -636,8 +636,8 @@ SampleTable::parseSampleCencInfo() {
|
||||
return OK;
|
||||
}
|
||||
|
||||
if (!mCencSizes.IsEmpty() && mCencOffsets.Length() > 1 &&
|
||||
mCencSizes.IsEmpty() != mCencOffsets.Length()) {
|
||||
if ((mCencOffsets.Length() > 1 && mCencOffsets.Length() < mCencInfoCount) ||
|
||||
(!mCencDefaultSize && mCencSizes.Length() < mCencInfoCount)) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user