diff options
| author | 2026-02-23 11:07:33 -0800 | |
|---|---|---|
| committer | 2026-02-24 08:19:49 -0800 | |
| commit | 3e711c8e4707c46cc45d9775b50204d0f2790d77 (patch) | |
| tree | cf6eb06de01427aa16955be4e0eaabf22ffe76e6 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | selftests/bpf: Free bpf_object in test_sysctl (diff) | |
selftests/bpf: Fix array bounds warning in jit_disasm_helpers
Compiler cannot infer upper bound for labels.cnt and warns about
potential buffer overflow in snprintf. Add an explicit bounds
check (... && i < MAX_LOCAL_LABELS) in the loop condition to fix the
warning.
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://lore.kernel.org/r/20260223190736.649171-18-ihor.solodrai@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
