nf_conntrack_h323: add checking of out-of-range on choices' index values
authorJing Min Zhao <zhaojingmin@vivecode.com>
Thu, 5 Jul 2007 18:42:14 +0000 (20:42 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 7 Jul 2007 04:52:13 +0000 (21:52 -0700)
commitc57b6320b85a739537cd67142f0c7c601e79ec05
treec4597942044b7cf3665d4f41aee4028376856023
parentcdcb7c1b759051742553c3002f01b6e2549366d9
nf_conntrack_h323: add checking of out-of-range on choices' index values

[NETFILTER]: nf_conntrack_h323: add checking of out-of-range on choices' index values

Choices' index values may be out of range while still encoded in the fixed
length bit-field. This bug may cause access to undefined types (NULL
pointers) and thus crashes (Reported by Zhongling Wen).

This patch also adds checking of decode flag when decoding SEQUENCEs.

Signed-off-by: Jing Min Zhao <zhaojingmin@vivecode.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/netfilter/nf_conntrack_h323_asn1.c