netfilter: nf_ct_h323: Out Of Bound Read in Netfilter Conntrack
Add missing counter decrement to prevent out of bounds memory read. Signed-off-by: Eric Sesterhenn <eric.sesterhenn@x41-dsec.de> Acked-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
ce49480dba
commit
e8daf27c2f
1 changed files with 1 additions and 0 deletions
|
@ -877,6 +877,7 @@ int DecodeQ931(unsigned char *buf, size_t sz, Q931 *q931)
|
||||||
if (sz < 1)
|
if (sz < 1)
|
||||||
break;
|
break;
|
||||||
len = *p++;
|
len = *p++;
|
||||||
|
sz--;
|
||||||
if (sz < len)
|
if (sz < len)
|
||||||
break;
|
break;
|
||||||
p += len;
|
p += len;
|
||||||
|
|
Loading…
Reference in a new issue