Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selftests/bpf: Fix issues in parse_num_list() #252

Closed
wants to merge 2 commits into from

Commits on Apr 6, 2022

  1. adding ci files

    Nobody committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    b1b764b View commit details
    Browse the repository at this point in the history
  2. 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]>
    ytcoode authored and Nobody committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    90a65c9 View commit details
    Browse the repository at this point in the history