mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[core,gateway] allow websocket write up to UINT32_MAX
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user