diff --git a/binding.gyp b/binding.gyp index 36c936d..2b8694e 100644 --- a/binding.gyp +++ b/binding.gyp @@ -10,7 +10,7 @@ ], "cflags": [ "-O2", - "-D_FORTIFY_SOURCE=2", + "-fstack-protector-strong", ], "msvs_configuration_attributes": { "SpectreMitigation": "Spectre" @@ -19,7 +19,9 @@ "VCCLCompilerTool": { "AdditionalOptions": [ "/guard:cf", + "/sdl", "/W3", + "/we4146", "/we4244", "/we4267", "/ZH:SHA_256" diff --git a/package-lock.json b/package-lock.json index df8bf3b..8db25a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "native-is-elevated", - "version": "0.8.0", + "version": "0.9.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "native-is-elevated", - "version": "0.8.0", + "version": "0.9.0", "license": "MIT" } } diff --git a/package.json b/package.json index 71c15b6..c4103be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "native-is-elevated", - "version": "0.8.0", + "version": "0.9.0", "description": "Native module for checking if the process is being run with elevated privileges", "author": "arkon", "license": "MIT",