nfqws,tpws: fix tls protocol bounds check

This commit is contained in:
bol-van
2023-10-12 14:46:32 +03:00
parent 508d11811d
commit c4729c3006
22 changed files with 4 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ bool TLSFindExtInHandshake(const uint8_t *data, size_t len, uint16_t type, const
data += l; len -= l;
l = pntoh16(data);
data += 2; len -= 2;
if (l < len) return false;
if (len < l) return false;
while (l >= 4)
{