Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
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>
Author Jonas Rebmann Committer Mark Brown Date (Sep 24, 2026, 8:58 PM UTC) Commit
Copy SHA
Parent a73c71e1 a73c71e1f25a4f7d6266a6c1cc5e3c903b52cc6a