# Re: \[PATCH v2 19/27\] selftests/landlock: Fix off-by-one in regex\_escape()

- From: sashiko-bot@kernel.org
- Date: 2026-11-04 21:15:39 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2026/11/17864930
- Thread: https://ratatoskr.run/linux-security-module/2026/11/17864489/t.md

```text
> The final check in regex_escape() was off by one byte
> and should require one byte less to put the NUL byte.
> 
> Signed-off-by: Günther Noack <redacted>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-selftests-refactor-v2-0-c52f23f7ce33@gmail.com?part=19

```
