Files
Jonas Rebmann c79bbeadab 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>
2026-09-24 21:58:08 +01:00
..
2017-07-26 12:25:23 +01:00