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

Suppress meaningless CodeQL warning. #1546

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

BillyONeal
Copy link
Member

@BillyONeal BillyONeal commented Dec 2, 2024

The warning is intended to detect accidentally running malicious code where a value rather than code is expected, for example the 'shellshock' bug. If we were trying to communicate what should be sanitized data between processes this warning would be appropriate, but this is used for things like vcpkg env which is intended to run arbitrary user-supplied shell input.

It's possible that there are places in vcpkg which would use this function inappropriately; effectively, the analysis needs to bubble up to the code that calls the execute_process* family, but CodeQL doesn't appear to understand this.

@BillyONeal BillyONeal merged commit 288f90c into microsoft:main Dec 2, 2024
6 checks passed
@BillyONeal BillyONeal deleted the suppress-codeql branch December 2, 2024 22:48
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.

2 participants