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

plugins: resolve coverity issues - v1 #5312

Closed
wants to merge 3 commits into from

Commits on Aug 11, 2020

  1. output-json: fix Coverity USE_AFTER_FREE

    Return error if plugin open fails. Fixes Coverity CID 1465664
    USE_AFTER_FREE error.
    
    Redmine issue:
    https://redmine.openinfosecfoundation.org/issues/3864
    jasonish committed Aug 11, 2020
    Configuration menu
    Copy the full SHA
    672a30e View commit details
    Browse the repository at this point in the history
  2. plugins: use closedir to close open directory (not free)

    Found by Coverity, CID 1465665: ALLOC_FREE_MISMATCH.
    
    Redmine issue:
    https://redmine.openinfosecfoundation.org/issues/3864
    jasonish committed Aug 11, 2020
    Configuration menu
    Copy the full SHA
    f85f37a View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2020

  1. plugins: track all loaded plugins in a list

    Track the pointer returned from dlopen in a list to prevent a
    resource leak by the pointer going out of scope.
    
    Found by Coverity, CID 1465661.
    
    Redmine issue:
    https://redmine.openinfosecfoundation.org/issues/3864
    jasonish committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    d539271 View commit details
    Browse the repository at this point in the history