Cpp: new experimental query cpp/guarded-free by mario-campos · Pull Request #16331 · github/codeql · GitHub
Skip to content

Cpp: new experimental query cpp/guarded-free#16331

Merged
MathiasVP merged 4 commits into
github:mainfrom
mario-campos:mario-campos/guarded-free
May 1, 2024
Merged

Cpp: new experimental query cpp/guarded-free#16331
MathiasVP merged 4 commits into
github:mainfrom
mario-campos:mario-campos/guarded-free

Conversation

@mario-campos

Copy link
Copy Markdown
Contributor

This PR introduces a new experimental query that finds instances of free() guarded by a superfluous NULL check.

@github-actions

Copy link
Copy Markdown
Contributor

Comment thread cpp/ql/src/experimental/Best Practices/GuardedFree.ql Outdated

@MathiasVP MathiasVP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MathiasVP MathiasVP merged commit a8f2cbc into github:main May 1, 2024
@mario-campos mario-campos deleted the mario-campos/guarded-free branch May 1, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants