LKML Archive on
help / color / mirror / Atom feed
From: Len Baker <>
To: Kees Cook <>, Andy Gross <>,
	Bjorn Andersson <>,
	Geert Uytterhoeven <>,
	Magnus Damm <>,
	Santosh Shilimkar <>
Cc: Len Baker <>,
	David Laight <David.Laight@ACULAB.COM>,
	Robin Murphy <>,,,,,
Subject: Re: [PATCH v2] drivers/soc: Remove all strcpy() uses
Date: Sun, 1 Aug 2021 10:47:31 +0200	[thread overview]
Message-ID: <20210801084731.GA2588@titan> (raw)
In-Reply-To: <>

On Sat, Jul 31, 2021 at 07:18:25PM +0200, Len Baker wrote:
> strcpy() performs no bounds checking on the destination buffer. This
> could result in linear overflows beyond the end of the buffer, leading
> to all kinds of misbehaviors. The safe replacement is strscpy().
> Moreover, when the size of the destination buffer cannot be obtained
> using "sizeof", use the memcpy function instead of strscpy.
> Reviewed-by: Geert Uytterhoeven <>
> Signed-off-by: Len Baker <>

Drop this patch. It has errors. Sorry for the noise.


      reply	other threads:[~2021-08-01  8:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-31 17:18 Len Baker
2021-08-01  8:47 ` Len Baker [this message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210801084731.GA2588@titan \ \
    --cc=David.Laight@ACULAB.COM \ \ \ \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH v2] drivers/soc: Remove all strcpy() uses' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).