Thread (2 messages) 2 messages, 2 authors, 6d ago

Re: [PATCH] Input: i8042 - replace strlcat() with seq_buf and scnprintf()

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2026-07-11 22:51:59
Also in: linux-hardening, lkml

On Tue, Jul 07, 2026 at 01:04:19AM -0500, Ian Bridges wrote:
In preparation for removing the strlcat() API[1], replace its uses in
i8042-acpipnpio.h.

i8042_pnp_id_to_string() accumulates a variable number of PNP ids in
a loop, which is what seq_buf is for. The kbd and aux probe functions
build a name from at most three parts that are all known up front, so
the whole construction becomes a single scnprintf() there.

Link: https://github.com/KSPP/linux/issues/370 [1]
Signed-off-by: Ian Bridges <redacted>
Applied, thank you.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help