[core,gateway] fix out of range check

This commit is contained in:
akallabeth 2024-10-22 09:41:08 +02:00
parent efffcee119
commit 4f4d400f7e
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -156,7 +156,7 @@ int websocket_write(BIO* bio, const BYTE* buf, int isize, WEBSOCKET_OPCODE opcod
winpr_RAND(&maskingKey, sizeof(maskingKey));
payloadSize = isize;
if ((isize < 0) || (isize > UINT32_MAX))
if (isize < 0)
return -1;
if (payloadSize < 126)