mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 847559 - Handle writes to a size-only JPEG decoder after we've gotten the size. r=seth
--HG-- extra : rebase_source : c02aa4f03dbba90d07f55d383a507bb27f605287
This commit is contained in:
parent
7a3348f6ce
commit
181d2fdae5
@ -194,6 +194,11 @@ nsJPEGDecoder::WriteInternal(const char *aBuffer, uint32_t aCount)
|
||||
|
||||
NS_ABORT_IF_FALSE(!HasError(), "Shouldn't call WriteInternal after error!");
|
||||
|
||||
if (IsSizeDecode() && HasSize()) {
|
||||
// More data came in since we found the size. We have nothing to do here.
|
||||
return;
|
||||
}
|
||||
|
||||
/* Return here if there is a fatal error within libjpeg. */
|
||||
nsresult error_code;
|
||||
// This cast to nsresult makes sense because setjmp() returns whatever we
|
||||
|
Loading…
Reference in New Issue
Block a user