diff options
author | Ian Rogers <[email protected]> | 2022-06-10 11:02:47 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-06-19 10:41:43 -0300 |
commit | cc2145526c9889e3dbddc210c21bc3a080b2a29f (patch) | |
tree | ef2568798760887907b503689e1a727f9818d3d0 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 94725994cfd768b9ee1bd06f15c252694b1e9b89 (diff) |
perf test: Fix variable length array undefined behavior in bp_account
Fix:
tests/bp_account.c:154:9: runtime error: variable length array bound evaluates to non-positive value 0
by switching from a variable length to an allocated array.
Signed-off-by: Ian Rogers <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions