[core,gateway] fix out of range check
This commit is contained in:
parent
efffcee119
commit
4f4d400f7e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user