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

swtpm: Add another exit label to avoid gcc -fanalyzer false positive #762

Merged
merged 1 commit into from
Oct 5, 2022

Commits on Oct 5, 2022

  1. swtpm: Add another exit label to avoid gcc -fanalyzer false positive

    Move existing exit label before the return statement and add another
    label that includes the free(filebuffer). This avoids a false positive
    by 'gcc -fanalyzer' that seems to think that free(filebuffer)
    would double-free filebuffer after filebuffer = realloc(tmp, ..)
    failure.
    
    Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
    stefanberger committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    0438602 View commit details
    Browse the repository at this point in the history