fix off-by-one in DecodeQ931
Subsystems (2)
PATCH 1/1 fix off-by-one in DecodeQ931
--- net/netfilter/nf_conntrack_h323_asn1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/netfilter/nf_conntrack_h323_asn1.c +2 -1
@@ -846,9 +846,10 @@ int DecodeQ931(unsigned char *buf, size_t sz, Q931 *q931) sz -= len;/* Message Type */ -if (sz <1 ) +if (sz <2 )return H323_ERROR_BOUND ; q931->MessageType = *p++; + sz--;"MessageType = %02X\n" , q931->MessageType);if (*p &0x80 ) { p++;
Signature · 1 line
2.7.4
Pablo Neira Ayuso
maintainerHi Tobias,
Quoted 3 lines · Toby DiPasquale
--- net/netfilter/nf_conntrack_h323_asn1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Please add a description to your patch and include your Signed-off-by.
For more info, have a look at:
http://lxr.free-electrons.com/source/Documentation/SubmittingPatches
Thanks.