diff options
| author | Yuntao Wang <[email protected]> | 2022-04-06 08:36:22 +0800 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-04-06 10:10:03 -0700 |
| commit | 958ddfd75d83d83e713027677c8786781e1f4576 (patch) | |
| tree | 5aec89f5bfe8c861da3360b9353dede2a3e5cbc1 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 1963c740dc2b52f45ba3d3748a50a0ab35db098a (diff) | |
selftests/bpf: Fix issues in parse_num_list()
The function does not check that parsing_end is false after parsing
argument. Thus, if the final part of the argument is something like '4-',
which is invalid, parse_num_list() will discard it instead of returning
-EINVAL.
Before:
$ ./test_progs -n 2,4-
#2 atomic_bounds:OK
Summary: 1/0 PASSED, 0 SKIPPED, 0 FAILED
After:
$ ./test_progs -n 2,4-
Failed to parse test numbers.
Signed-off-by: Yuntao Wang <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions