[core,gateway] allow websocket write up to UINT32_MAX

This commit is contained in:
akallabeth 2024-10-01 10:13:45 +02:00
parent 47c5070805
commit a85068d42e
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -150,7 +150,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 > UINT16_MAX))
if ((isize < 0) || (isize > UINT32_MAX))
return -1;
if (payloadSize < 126)