Binscope GSFunctionSafeBuffersCheck validation fails on Win10 driver

When I run Binscope on my Win10 driver it fails on GSFunctionSafeBuffersCheck check with following error

GSFunctionSafeBuffersCheck ( FAIL )
FunctionDeclaredSafebuffers1 :
___security_init_cookie: was declared __declspec(safebuffers) !

I compiled Win10 driver .sys with ?Runtime Library? set to ?Multi-thread DLL (/MD) ? and ?C/C++/Optimization? set to ?Disabaled (/Od). I have also /GS function enabled.

Please let me if any other options need to set in .vcxproj or other setting to resolve this issue.

> ?Runtime Library? set to ?Multi-thread DLL (/MD)

This is not applicable to kmode drivers.

Can you use settings which the WDK suggests?


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

I have kmode driver settings with following options:

General -> “ConfigurationType” = Driver
Driver Settings -> “Type of Driver” = KMDF
Driver Settings -> General -> “Target OS Version” = Windows 10 or Higher

In addition, I have the Runtime Library settings I have mentioned earlier. However I still get the GSFunctionSafeBuffersCheck (FAIL).

Thanks
Lax