mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 865919 - Check for still-negative heights when decoding BMPs. - r=joe
This commit is contained in:
parent
32874625f1
commit
315d51e816
@ -247,6 +247,12 @@ nsBMPDecoder::WriteInternal(const char* aBuffer, uint32_t aCount)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check that our abs height is still valid.
|
||||||
|
if (GetHeight() < 0) {
|
||||||
|
PostDataError();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t real_height = GetHeight();
|
uint32_t real_height = GetHeight();
|
||||||
|
|
||||||
// Post our size to the superclass
|
// Post our size to the superclass
|
||||||
|
Loading…
Reference in New Issue
Block a user