Bug 1794754. Return NEED_MORE_DATA from nsWebPDecoder::ReadHeader if ICC was specified but chunk not found r=aosmond

Bug 1780834 caused this bug. If we are not complete then we might need to
wait for more data to come in that has the ICCP chunk.

Differential Revision: https://phabricator.services.mozilla.com/D159137
This commit is contained in:
Timothy Nikkel 2022-10-20 07:53:25 +00:00
parent 6cd95831a0
commit 19b7441082

View file

@ -367,6 +367,10 @@ LexerResult nsWebPDecoder::ReadHeader(WebPDemuxer* aDemuxer, bool aIsComplete) {
WebPDemuxReleaseChunkIterator(&iter);
} else {
if (!aIsComplete) {
return LexerResult(Yield::NEED_MORE_DATA);
}
MOZ_LOG(sWebPLog, LogLevel::Warning,
("[this=%p] nsWebPDecoder::ReadHeader header specified ICCP "
"but no ICCP chunk found, ignoring\n",