Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio warning D9025 for seemingly compatible options

I'm getting the error

D9025   overriding '/sdl-' with '/GS-'

/sdl- turns off the Security Development Lifecycle checks, and /GS- turns off stack overflow security checks. Seemingly these options should be compatible, but I still get the warning. How do I fix it?

And before anyone asks, yes, I need these options off since the security cookie shows up in profiling as expensive.

like image 584
Eyal K. Avatar asked May 16 '17 11:05

Eyal K.


1 Answers

As stated in the documentation for /sdl :

/sdl enables a superset of the baseline security checks provided by /GS and overrides /GS-. By default, /sdl is off. /sdl- disables the additional security checks.

Since /sdl is a superset of /GS and /sdl is off by default but /GS isn't you get this Enterprise™ error message. Just only disable /GS explicitly.

like image 81
Hatted Rooster Avatar answered Oct 29 '22 03:10

Hatted Rooster