Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: YueHaibing <yuehaibing@huawei.com>
Cc: gregkh@linuxfoundation.org, alsa-devel@alsa-project.org,
	tiwai@suse.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] ALSA: gus: Replace unsafe strcpy() with strscpy()
Date: Fri, 14 May 2021 09:47:09 +0200	[thread overview]
Message-ID: <s5hv97l92pu.wl-tiwai@suse.de> (raw)
In-Reply-To: <20210514070507.16600-1-yuehaibing@huawei.com>

On Fri, 14 May 2021 09:05:07 +0200,
YueHaibing wrote:
> 
> Fix smatch warning:
> sound/isa/gus/gus_main.c:396 snd_gus_check_version() error:
>  strcpy() 'card->longname' too large for 'card->shortname' (80 vs 32)
> 
> Even if this is not a real bug since the longest length of card->longname
> now is 31, replace strcpy() with strscpy() in order to avoid possible
> future mistake.
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Applied, thanks.


Takashi

      reply	other threads:[~2021-05-14  7:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-14  7:05 [PATCH -next] ALSA: gus: Replace unsafe strcpy() with strscpy() YueHaibing
2021-05-14  7:47 ` Takashi Iwai [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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=s5hv97l92pu.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tiwai@suse.com \
    --cc=yuehaibing@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox