[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200311110153.GB304@netronome.com>
Date: Wed, 11 Mar 2020 12:01:54 +0100
From: Simon Horman <simon.horman@...ronome.com>
To: Takashi Iwai <tiwai@...e.de>
Cc: netdev@...r.kernel.org, "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, oss-drivers@...ronome.com
Subject: Re: [oss-drivers] [PATCH 5/7] ionic: Use scnprintf() for avoiding
potential buffer overflow
On Wed, Mar 11, 2020 at 09:37:43AM +0100, Takashi Iwai wrote:
> Since snprintf() returns the would-be-output size instead of the
> actual output size, the succeeding calls may go beyond the given
> buffer limit. Fix it by replacing with scnprintf().
>
> Cc: Jakub Kicinski <kuba@...nel.org>
> Cc: oss-drivers@...ronome.com
> Signed-off-by: Takashi Iwai <tiwai@...e.de>
Reviewed-by: Simon Horman <simon.horman@...ronome.com>
Powered by blists - more mailing lists