Compare commits
1 Commits
feature/ma
...
v7.2.2
Author | SHA1 | Date | |
---|---|---|---|
499262f752 |
@ -542,6 +542,13 @@ namespace ix
|
||||
ws.masking_key[3] = 0;
|
||||
}
|
||||
|
||||
// Prevent integer overflow in the next conditional
|
||||
const uint64_t maxFrameSize(1 << 63);
|
||||
if (ws.N > maxFrameSize)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_rxbuf.size() < ws.header_size + ws.N)
|
||||
{
|
||||
return; /* Need: ws.header_size+ws.N - _rxbuf.size() */
|
||||
|
Reference in New Issue
Block a user