diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-13 05:48:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-13 05:48:01 +0000 |
commit | 4bc834b03b9438dcfd45780f31a02994c24608ba (patch) | |
tree | 1ee84a24bd250533fbdadfa949f438db20ba98aa /net-firewall/iptables/files | |
parent | 175512fa7c74d0e48a7a1b40a6e456435af0481b (diff) |
gentoo auto-resync : 13:01:2023 - 05:48:01
Diffstat (limited to 'net-firewall/iptables/files')
-rw-r--r-- | net-firewall/iptables/files/iptables-1.8.9-format-security.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net-firewall/iptables/files/iptables-1.8.9-format-security.patch b/net-firewall/iptables/files/iptables-1.8.9-format-security.patch new file mode 100644 index 000000000000..a95c43600986 --- /dev/null +++ b/net-firewall/iptables/files/iptables-1.8.9-format-security.patch @@ -0,0 +1,26 @@ +https://git.netfilter.org/iptables/commit/?id=ed4082a7405a5838c205a34c1559e289949200cc + +From ed4082a7405a5838c205a34c1559e289949200cc Mon Sep 17 00:00:00 2001 +From: Phil Sutter <phil@nwl.cc> +Date: Thu, 12 Jan 2023 14:38:44 +0100 +Subject: extensions: NAT: Fix for -Werror=format-security + +Have to pass either a string literal or format string to xt_xlate_add(). + +Fixes: f30c5edce0413 ("extensions: Merge SNAT, DNAT, REDIRECT and MASQUERADE") +Signed-off-by: Phil Sutter <phil@nwl.cc> +--- a/extensions/libxt_NAT.c ++++ b/extensions/libxt_NAT.c +@@ -424,7 +424,7 @@ __NAT_xlate(struct xt_xlate *xl, const struct nf_nat_range2 *r, + if (r->flags & NF_NAT_RANGE_PROTO_OFFSET) + return 0; + +- xt_xlate_add(xl, tgt); ++ xt_xlate_add(xl, "%s", tgt); + if (strlen(range_str)) + xt_xlate_add(xl, " to %s", range_str); + if (r->flags & NF_NAT_RANGE_PROTO_RANDOM) { +-- +cgit v1.2.3 + + |