-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Added CodeQL supression comment #18431
Conversation
@@ -115,7 +115,7 @@ void SaveConsoleSettingsIfNeeded(const HWND hwnd) | |||
LoadStringW(ghInstance, IDS_LINKERROR, awchBuffer, ARRAYSIZE(awchBuffer)); | |||
StringCchPrintf(szMessage, | |||
ARRAYSIZE(szMessage), | |||
awchBuffer, | |||
awchBuffer, // CodeQL [SM01734] Pulled from a resource file and cannot be a string literal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait, didn't you fix one of these already? Does CodeQL spit out a single error every time? Can it be made to report all of them instead so we can fix them all in one PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DHowett Yeah I didn't realize it wasn't one of the files under OSS that got fixed for 1.22. This is the last one we got with our set of 3 from a couple months ago. I don't expect any more of these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qq ut supra
CodeQL is raising errors when building Visual Studio since they have a dependency on Windows Terminal for our integrated terminal. The issue raised by CodeQL refers to a non-constant string format, but in this case the string comes from a resource file and should be considered constant. (cherry picked from commit 25392ea) Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgWYgYU Service-Version: 1.22
CodeQL is raising errors when building Visual Studio since they have a dependency on Windows Terminal for our integrated terminal. The issue raised by CodeQL refers to a non-constant string format, but in this case the string comes from a resource file and should be considered constant. (cherry picked from commit 25392ea) Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgWYgYM Service-Version: 1.21
Summary of the Pull Request
CodeQL is raising errors when building Visual Studio since we have a dependency on Windows Terminal for our integrated terminal. The issue raised by CodeQL refers to a non-constant string format, but in this case the string comes from a resource file and should be considered constant.
This PR adds an ignore comment for CodeQL
References and Relevant Issues
CodeQL error: https://liquid.microsoft.com/codeql/issues/95192647-5121-4d27-b873-63e63e825d72?copilot_promptid=E91B0CE9-0C1B-4AC2-8A46-33F49B67E058
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed
PR Checklist