]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxt_policy: use bounded strtoui
authorJan Engelhardt <jengelh@medozas.de>
Sat, 21 Feb 2009 03:00:21 +0000 (04:00 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 21 Feb 2009 03:01:48 +0000 (04:01 +0100)
commitda68957303dea58632466d79d52f83bcbbca8925
treec8a85826721bfd2bcc81680ff11bada4a137d282
parentafe6b357db60c7d70379a27360c10a352bf55203
libxt_policy: use bounded strtoui

reqid and SPI can only have a value in the range 0..UINT32_MAX, not
the entire range of the "long" type. Also throw an error if the
incoming string does not look like a pure number.

"Replaces" commit 6db2ded2f22a7e78743c86af523b8430876582e9.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libip6t_policy.c
extensions/libipt_policy.c