Bug 1298259 - better saio check - r=jya

MozReview-Commit-ID: 62nzw9h1f1X

--HG--
extra : rebase_source : 1eb533811082b72e4a1459bb796f1706a570ec3e
This commit is contained in:
Gerald Squelart 2016-08-26 13:01:32 +10:00
Родитель b41dc19d66
Коммит 81f1aedf91
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;