зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1298259 - better saio check - r=jya
MozReview-Commit-ID: 62nzw9h1f1X --HG-- extra : rebase_source : 1eb533811082b72e4a1459bb796f1706a570ec3e
This commit is contained in:
Родитель
b41dc19d66
Коммит
81f1aedf91
|
@ -887,7 +887,7 @@ Saio::Saio(Box& aBox, AtomType aDefaultType)
|
|||
}
|
||||
size_t count = reader->ReadU32();
|
||||
need = (version ? sizeof(uint64_t) : sizeof(uint32_t)) * count;
|
||||
if (reader->Remaining() < count) {
|
||||
if (reader->Remaining() < need) {
|
||||
LOG(Saio, "Incomplete Box (have:%lld need:%lld)",
|
||||
(uint64_t)reader->Remaining(), (uint64_t)need);
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче