From: Aibing Chen <chenaibing@cmss.chinamobile.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Jaroslav Kysela <perex@perex.cz>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: hdsp: enlarge the MIDI name buffer
Date: Mon, 23 Nov 2026 11:28:01 +0800 [thread overview]
Message-ID: <20261123032801.1410-1-chenaibing@cmss.chinamobile.com> (raw)
In-Reply-To: <87o6boyhj5.wl-tiwai@suse.de>
Hi Takashi,
Verified that there is no overflow with this driver. card->shortname is
only ever assigned a fixed string:
sound/pci/rme9652/hdsp.c:5053 strscpy(card->shortname, "Hammerfall DSP");
sound/pci/rme9652/hdsp.c:5354 strscpy(card->shortname, "Hammerfall DSP");
so it is always 14 characters. " MIDI " plus id + 1 (a single digit for
every card this driver supports) brings the formatted name to at most 21
characters plus the terminator, well below the 40 byte buffer. The W=1
warning is a false positive because the compiler cannot bound
card->shortname.
I will drop the patch.
Thanks,
Aibing Chen
prev parent reply other threads:[~2026-11-23 3:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-14 13:02 Aibing Chen
2026-11-16 14:31 ` Takashi Iwai
2026-11-23 3:28 ` Aibing Chen [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=20261123032801.1410-1-chenaibing@cmss.chinamobile.com \
--to=chenaibing@cmss.chinamobile.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.de \
/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
all inboxes | Powered by JetHome®