Re: [RESEND] edac: replace sprintf() by scnprintf()
From: Joe Perches
Date: Mon Jul 12 2021 - 12:30:17 EST
On Mon, 2021-07-12 at 13:09 +0100, Salah Triki wrote:
> On Sat, Jul 10, 2021 at 09:58:46AM -0700, Joe Perches wrote:
> > On Sat, 2021-07-10 at 17:35 +0100, Salah Triki wrote:
> > > Replace sprintf() by scnprintf() in order to avoid buffer overflows.
> > Maybe name should be moved into the loop too.
> In addition, for moving the
> declaration of name inside the loop we need to compile the source in
> C99 mode.
You need to read the c90 spec.