mirror of https://github.com/PCSX2/pcsx2
Image: Fix BMP dimension validation to use inclusive checks
Signed-off-by: SternXD <stern@sidestore.io>
This commit is contained in:
parent
580cf70d06
commit
e5da610f3a
|
|
@ -1148,7 +1148,7 @@ bool BMPBufferLoader(RGBA8Image* image, const void* buffer, size_t buffer_size)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (width > 65536 || height > 65536)
|
||||
if (width >= 65536 || height >= 65536)
|
||||
{
|
||||
Console.Error("BMP dimensions too large: %ux%u", width, height);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue