[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210620204538.GB10010@breakpoint.cc>
Date: Sun, 20 Jun 2021 22:45:38 +0200
From: Florian Westphal <fw@...len.de>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Pablo Neira Ayuso <pablo@...filter.org>,
Jozsef Kadlecsik <kadlec@...filter.org>,
Florian Westphal <fw@...len.de>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net-next] netfilter: nfnetlink_hook: fix check for
snprintf() overflow
Dan Carpenter <dan.carpenter@...cle.com> wrote:
> The kernel version of snprintf() can't return negatives. The
> "ret > (int)sizeof(sym)" check is off by one because and it should be
> >=. Finally, we need to set a negative error code.
Reviewed-by: Florian Westphal <fw@...len.de>
Powered by blists - more mailing lists