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

Conversation

stefanberger
Copy link
Owner

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

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 stefanberger merged commit 87ce53f into master Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant