Image: Fix BMP dimension validation to use inclusive checks

Signed-off-by: SternXD <stern@sidestore.io>
This commit is contained in:
SternXD 2025-11-19 17:09:26 -05:00
parent 580cf70d06
commit e5da610f3a
No known key found for this signature in database
GPG Key ID: D441C1FDAF4EAC36
1 changed files with 1 additions and 1 deletions

View File

@ -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;