This commit is contained in:
Herman Semenoff 2026-08-06 00:27:41 +03:00 • committed by GitHub
commit ba39770596
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -394,7 +394,7 @@ static GLFWbool loadCursorTheme(void)
{
errno = 0;
const long cursorSizeLong = strtol(sizeString, NULL, 10);
if (errno == 0 && cursorSizeLong > 0 && cursorSizeLong < INT_MAX)
if (errno == 0 && cursorSizeLong > 0 && cursorSizeLong < INT_MAX / 2)
cursorSize = (int) cursorSizeLong;
}