forked from mirrors/gecko-dev
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:
parent
6cd95831a0
commit
19b7441082
1 changed files with 4 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue