mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-23 14:53:18 +00:00
nfqws: prevent out-of-bound access
This commit is contained in:
parent
0887fe6f2a
commit
7df1be9d3e
@ -462,7 +462,7 @@ bool QUICDefragCrypto(const uint8_t *clean,size_t clean_len, uint8_t *defrag,siz
|
||||
|
||||
if (pos>=clean_len) return false;
|
||||
|
||||
if ((pos+tvb_get_size(clean[pos])>clean_len)) return false;
|
||||
if ((pos+tvb_get_size(clean[pos])>=clean_len)) return false;
|
||||
pos += tvb_get_varint(clean+pos, &offset);
|
||||
|
||||
if ((pos+tvb_get_size(clean[pos])>clean_len)) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user