summaryrefslogtreecommitdiffstats
path: root/iptables/xtables.c
diff options
context:
space:
mode:
authorOliver Ford <ojford@gmail.com>2017-06-02 15:34:37 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2017-06-19 19:29:54 +0200
commit79e1edd1e5a019992311b52b8951cecbd95a04c5 (patch)
tree834c6dbaafefa3f4382d72ad15c1fc2834f3b674 /iptables/xtables.c
parentc49a93f18e03c0935cb209dca14ce438b2d5f9be (diff)
iptables-xml: Fix segfault on jump without a target
As reported in Bugzilla #1152, a segfault occurs in iptables-xml if a jump or goto argument lacks a target argument. The following input will segfault: *filter :INPUT ACCEPT [0:0] -A INPUT -p tcp --dport 2200 -j Problem occurs in do_rule_part, where the existsChain() function is called with argv[arg + 1]. If the jump/goto argument is the last argument, then arg + 1 is out of the array bounds. The fix ensures that arg + 1 is within the array bounds before the call to existsChain() is made. Signed-off-by: Oliver Ford <ojford@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables.c')
0 files changed, 0 insertions, 0 deletions