From: Patrick McHardy <kaber@trash.net>
To: Masanari Iida <standby24x7@gmail.com>
Cc: netdev@vger.kernel.org, pablo@netfilter.org,
kadlec@blackhole.kfki.hu, netfilter-devel@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/5] netfilter: Fix format string mismatch in mangle_content_len()
Date: Tue, 29 Apr 2014 15:21:21 +0100 [thread overview]
Message-ID: <20140429142119.GA12499@macbook.localnet> (raw)
In-Reply-To: <1396280619-31152-1-git-send-email-standby24x7@gmail.com>
On Tue, Apr 01, 2014 at 12:43:36AM +0900, Masanari Iida wrote:
> Fix format string mismatch in mangle_connect_len()
All these patches seem like pointless noise to me. In none of these
cases can the value legitimately be negative. If anything, you should
fix the types to be unsigned.
>
> Signed-off-by: Masanari Iida <standby24x7@gmail.com>
> ---
> net/netfilter/nf_nat_sip.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/netfilter/nf_nat_sip.c b/net/netfilter/nf_nat_sip.c
> index b4d691d..5f98845 100644
> --- a/net/netfilter/nf_nat_sip.c
> +++ b/net/netfilter/nf_nat_sip.c
> @@ -434,7 +434,7 @@ static int mangle_content_len(struct sk_buff *skb, unsigned int protoff,
> &matchoff, &matchlen) <= 0)
> return 0;
>
> - buflen = sprintf(buffer, "%u", c_len);
> + buflen = sprintf(buffer, "%d", c_len);
> return mangle_packet(skb, protoff, dataoff, dptr, datalen,
> matchoff, matchlen, buffer, buflen);
> }
> --
> 1.9.1.352.gd393d14
>
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-04-29 14:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-31 15:43 [PATCH 2/5] netfilter: Fix format string mismatch in mangle_content_len() Masanari Iida
2014-03-31 15:43 ` [PATCH 3/5] netfilter: Fix format string mismatch in _conntrack_tftp_init() Masanari Iida
2014-04-23 12:22 ` Pablo Neira Ayuso
2014-03-31 15:43 ` [PATCH 4/5] netfilter: Fix format string mismatch in nf_conntrack_irc_init() Masanari Iida
2014-04-23 12:23 ` Pablo Neira Ayuso
2014-03-31 15:43 ` [PATCH 5/5] netfilter: Fix format string mismatch in nf_conntrack_sip_init() Masanari Iida
2014-04-23 12:23 ` Pablo Neira Ayuso
2014-04-23 12:22 ` [PATCH 2/5] netfilter: Fix format string mismatch in mangle_content_len() Pablo Neira Ayuso
2014-04-29 14:21 ` Patrick McHardy [this message]
2014-04-29 19:02 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140429142119.GA12499@macbook.localnet \
--to=kaber@trash.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=standby24x7@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.