summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhil Oester <kernel@linuxace.com>2013-08-15 10:19:11 -0700
committerPablo Neira Ayuso <pablo@netfilter.org>2013-08-17 11:47:56 +0200
commit5075879c3370f7d070b40c2f1c8e8039a187d046 (patch)
treee39378d115e0b377fb305582f4451e1755fe7db5 /include
parentd0218ea4573837d775c3e605913a45021f1526b9 (diff)
datatype: validate port number in inet_service_type_parse
At present, nft accepts out of range port values such as in this example: nft add rule ip filter input tcp dport 123456 accept Attached patch adds checks for both integer overflow and 16 bit overflow, and avoids getaddrinfo call in the (common) case of digit input. Example above now produces this output: <cmdline>:1:36-41: Error: Service out of range add rule ip filter input tcp dport 123456 accept ^^^^^^ Signed-off-by: Phil Oester <kernel@linuxace.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions