Re: [PATCH 0/5] lib/string_helpers: fixes and test cases for string_unescape()
From: Andrew Morton
Date: Wed Sep 16 2026 - 17:38:22 EST
On Wed, 16 Sep 2026 19:38:05 +0200 Jonas Rebmann <jre@xxxxxxxxxxxxxx> wrote:
> This series fixes two bugs in string_unescape() regarding the
> destination buffer length. Both fixes are accompanied with kunit tests
> which would fail without the fixes.
>
> To make this possible, preparatory patches 1 and 2 improve and clean up
> testing helpers and 3 introduces test_unescape_one() which allows for
> targeted testing of the string_unescape() function.
Sashiko complains about uncheched kunit_kzalloc() return val.
https://sashiko.dev/#/patchset/20260916-string_unescape-v1-0-7f8bd986fa33@xxxxxxxxxxxxxx
I wonder whether we really need the usual allocation-failure semantics
in kunit. Can we just make the kunit memory allocation functions abort
on error?