diff options
| author | Mickaël Salaün <mic@digikod.net> | 2026-04-02 21:26:02 +0200 |
|---|---|---|
| committer | Mickaël Salaün <mic@digikod.net> | 2026-04-07 18:51:00 +0200 |
| commit | b566f7a4f0e4f15f78f2e5fac273fa954991e03a (patch) | |
| tree | fdca449b71894602997bb6713954b6a722bdc1c7 /tools/perf/scripts/python/stackcollapse.py | |
| parent | e75e38055b9df5eafd663c6db00e634f534dc426 (diff) | |
selftests/landlock: Fix snprintf truncation checks in audit helpers
snprintf() returns the number of characters that would have been
written, excluding the terminating NUL byte. When the output is
truncated, this return value equals or exceeds the buffer size. Fix
matches_log_domain_allocated() and matches_log_domain_deallocated() to
detect truncation with ">=" instead of ">".
Cc: Günther Noack <gnoack@google.com>
Cc: stable@vger.kernel.org
Fixes: 6a500b22971c ("selftests/landlock: Add tests for audit flags and domain IDs")
Reviewed-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20260402192608.1458252-2-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
