]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxt_u32: do bounds checking for @'s operands
authorJan Engelhardt <jengelh@inai.de>
Fri, 13 Jul 2012 21:18:29 +0000 (23:18 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 31 Jul 2012 11:31:44 +0000 (13:31 +0200)
commitdc23c2d7afd2103cbc589372769c2f6723ea5235
tree438c2582996a1966e9abc6fcc6948c27e70e980b
parenta3c1c206a665d81afa2363507a5e162c20694311
libxt_u32: do bounds checking for @'s operands

Using only strtoul is prone to accept all values, including negative
ones which are not explicitly allowed. Therefore, use xtables_strtoui
with bounds checking.

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
extensions/libxt_u32.c