Re: [PATCH] ASoC: codecs: fs210x: fix possible buffer overflow

From: Mark Brown

Date: Tue May 12 2026 - 08:41:08 EST


On Mon, May 11, 2026 at 10:35:30PM +0200, Alexander A. Klimov wrote:
> In fs210x_effect_scene_info(), a string was copied like this:
>
> strscpy(DST, SRC, strlen(SRC));
>
> A buffer overflow would happen if strlen(SRC) > sizeof(DST).
> Actually, strscpy() must be used this way:

This doesn't apply against current code, please check and resend.

Attachment: signature.asc
Description: PGP signature