summaryrefslogtreecommitdiff
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorJonas Rebmann <jre@pengutronix.de>2026-09-24 15:44:03 +0200
committerMark Brown <broonie@kernel.org>2026-09-24 21:58:08 +0100
commitc79bbeadabc07e9a4c68ca16a3744a2264d6fbae (patch)
treede824283e6cef4d68a57421c6f5f26fb128cbfba /kernel/workqueue.c
parenta73c71e1f25a4f7d6266a6c1cc5e3c903b52cc6a (diff)
spi: spidev_test: rewrite unescape() to stay in bounds
unescape() could read the source buffer out of bounds for inputs like "\\x" and could write the destination buffer out of bounds due to lack of checking against the len parameter. For better readability and consistency, rewrite it as a simplified version of unescape_string() in string_helpers.h. This includes rearranging src and dst parameters. Signed-off-by: Jonas Rebmann <jre@pengutronix.de> Link: https://patch.msgid.link/20260924-spi-sun4i-spidev_test-v7-13-126e31a07fdc@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions