[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210621200616.GA5033@salvia>
Date: Mon, 21 Jun 2021 22:06:16 +0200
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: 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
On Sat, Jun 19, 2021 at 04:55:46PM +0300, Dan Carpenter 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.
Applied, thanks.
Powered by blists - more mailing lists