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

Minor Coverity Scan fixes #594

Merged
merged 6 commits into from
Sep 2, 2024
Merged

Minor Coverity Scan fixes #594

merged 6 commits into from
Sep 2, 2024

Commits on Sep 2, 2024

  1. confd: constify, found by clang-tidy

    Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
    troglobit committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    9a09a3e View commit details
    Browse the repository at this point in the history
  2. confd: fix variable overloading, global xpath unused

    Found by clang-tidy
    
    Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
    troglobit committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    a943202 View commit details
    Browse the repository at this point in the history
  3. confd: reduce scope of local variables

    Found by clang-tidy
    
    Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
    troglobit committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    a3d8e05 View commit details
    Browse the repository at this point in the history
  4. confd: minor, reduce complexity

     - Silence linter, add braces
     - Unindent code block to reduce complexity
    
    Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
    troglobit committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    7e5e3fa View commit details
    Browse the repository at this point in the history
  5. confd: fix possible NULL pointer dereference

    The srx_get_str() function may return NULL, which goes unchecked in
    both fxlate() and sxlate(), as well as the calls to free().
    
    Found by Coverity Scan
    
    Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
    troglobit committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    0fd4dc0 View commit details
    Browse the repository at this point in the history
  6. confd: unchecked return value from remove()

    Not much we can do, other than log and report.
    
    Found by Coverity Scan
    
    Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
    troglobit committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    3b1415d View commit details
    Browse the repository at this point in the history