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

Fix security scan problems. v6.0.131 #4100

Merged
merged 3 commits into from
Jun 21, 2024

Commits on Jun 21, 2024

  1. fix redundant null check.

    ph is a pointer to pointer, which is used to pass a pointer,
    entry->stream, out of the method, and ph already dereferenced
    on the begining of this method, so it's impossible to be null.
    `ISrsHttpHander* h = *ph ? *ph : NULL`
    suzp1984 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    3a97415 View commit details
    Browse the repository at this point in the history
  2. cheating the security scanning

    security scan said use pointer after free, actually it's not true,
    it's totally safe here, so free pointer in another name, check
    the stupid security tool's response.
    suzp1984 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    7044897 View commit details
    Browse the repository at this point in the history
  3. Update release to v6.0.131

    winlinvip committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    9cbcfbd View commit details
    Browse the repository at this point in the history