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:47:05 +0000 (21:47 -0700)
commitfcc56368e2c29ef4fb91d9374cea4834d0a6eb61
tree039e4d35f3106c23a8f8dae2c75d2cebda228362
parentf4f835e151bc00961ef65449a992817931355793
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