You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rule BA2026 is being reported as NotApplicable with no additional message for all our native binaries, even though they are compiled with /sdl switch set to true:
I debugged EnableMicrosoftCompilerSdlSwitch.EnableMicrosoftCompilerSdlSwitch and found the sdlEnabled value read from the debug section is not 0 or 1, hence the switch goes through the default case and executes the Log line after the switch. I copied the code that reads the value to a test app that prints the value for all the binaries in a folder - for 135 binaries in our Release\x86 folder there were 44 unique values for sdlEnabled with no apparent pattern, though most are < 255.
I can reproduce the issue with a brand new Visual Studio project created from the C++/Dynamic Link Library project template with all compiler settings unchanged from their defaults in the template (including /sdl set to true). In that case the value of sdlEnabled is 2.
This is with Visual Studio 2022 17.7.6 with v143 toolset (CL.exe version 19.37.32825). The issue regardless of whether the binary is compiled for Debug, Release, x86 or x64.
The text was updated successfully, but these errors were encountered:
Rule BA2026 is being reported as NotApplicable with no additional message for all our native binaries, even though they are compiled with /sdl switch set to true:
I debugged EnableMicrosoftCompilerSdlSwitch.EnableMicrosoftCompilerSdlSwitch and found the sdlEnabled value read from the debug section is not 0 or 1, hence the switch goes through the default case and executes the Log line after the switch. I copied the code that reads the value to a test app that prints the value for all the binaries in a folder - for 135 binaries in our Release\x86 folder there were 44 unique values for sdlEnabled with no apparent pattern, though most are < 255.
I can reproduce the issue with a brand new Visual Studio project created from the C++/Dynamic Link Library project template with all compiler settings unchanged from their defaults in the template (including /sdl set to true). In that case the value of sdlEnabled is 2.
This is with Visual Studio 2022 17.7.6 with v143 toolset (CL.exe version 19.37.32825). The issue regardless of whether the binary is compiled for Debug, Release, x86 or x64.
The text was updated successfully, but these errors were encountered: