diff --git a/CMakeLists.txt b/CMakeLists.txt index 2438d66..87c32db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,6 +69,8 @@ target_include_directories(${PROJECT_NAME} PUBLIC $ PRIVATE Binary/) +target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11) + if(MSVC) # Use max Warning Level string(REPLACE "/W3 " "/W4 " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) @@ -113,6 +115,11 @@ install(FILES if(MSVC) target_compile_options(${PROJECT_NAME} PRIVATE /fp:fast "$<$>:/guard:cf>") + + if((MSVC_VERSION GREATER_EQUAL 1928) AND (CMAKE_SIZEOF_VOID_P EQUAL 8) + AND ((NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0))) + target_compile_options(${PROJECT_NAME} PRIVATE "$<$>:/guard:ehcont>") + endif() endif() if(NOT ${DIRECTX_ARCH} MATCHES "^arm") diff --git a/Effects11_2019_Win10.vcxproj b/Effects11_2019_Win10.vcxproj index 8e60cde..7d13d0b 100644 --- a/Effects11_2019_Win10.vcxproj +++ b/Effects11_2019_Win10.vcxproj @@ -40,7 +40,7 @@ Unicode v142 - + StaticLibrary true Unicode @@ -51,7 +51,7 @@ Unicode v142 - + StaticLibrary Unicode v142 @@ -61,7 +61,7 @@ Unicode v142 - + StaticLibrary Unicode v142 @@ -92,7 +92,7 @@ Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)\ Effects11d - + Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)\ Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)\ Effects11d @@ -102,7 +102,7 @@ Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)\ Effects11 - + Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)\ Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)\ Effects11 @@ -112,7 +112,7 @@ Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)\ Effects11 - + Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)\ Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)\ Effects11 @@ -125,7 +125,7 @@ Fast StreamingSIMDExtensions2 $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;_DEBUG;DEBUG;PROFILE;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use @@ -141,23 +141,15 @@ false - - - - - - - - - + Level4 Disabled MultiThreadedDebugDLL Fast $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;_DEBUG;DEBUG;PROFILE;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use @@ -173,14 +165,6 @@ false - - - - - - - - @@ -189,7 +173,7 @@ Fast StreamingSIMDExtensions2 $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;NDEBUG;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use @@ -205,27 +189,20 @@ false - - - - - - - - - + Level4 MaxSpeed Fast $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;NDEBUG;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use /Zc:__cplusplus /ZH:SHA_256 %(AdditionalOptions) 5205 + true true @@ -236,14 +213,6 @@ false - - - - - - - - @@ -252,7 +221,7 @@ Fast StreamingSIMDExtensions2 $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;NDEBUG;PROFILE;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use @@ -268,27 +237,20 @@ false - - - - - - - - - + Level4 MaxSpeed Fast $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;NDEBUG;PROFILE;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use /Zc:__cplusplus /ZH:SHA_256 %(AdditionalOptions) 5205 + true true @@ -299,14 +261,6 @@ false - - - - - - - - @@ -321,9 +275,9 @@ Create Create Create - Create - Create - Create + Create + Create + Create diff --git a/Effects11_2022_Win10.vcxproj b/Effects11_2022_Win10.vcxproj index c3e5c99..bb71b4a 100644 --- a/Effects11_2022_Win10.vcxproj +++ b/Effects11_2022_Win10.vcxproj @@ -40,7 +40,7 @@ Unicode v143 - + StaticLibrary true Unicode @@ -51,7 +51,7 @@ Unicode v143 - + StaticLibrary Unicode v143 @@ -61,7 +61,7 @@ Unicode v143 - + StaticLibrary Unicode v143 @@ -92,7 +92,7 @@ Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)\ Effects11d - + Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)\ Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)\ Effects11d @@ -102,7 +102,7 @@ Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)\ Effects11 - + Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)\ Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)\ Effects11 @@ -112,7 +112,7 @@ Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)\ Effects11 - + Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)\ Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)\ Effects11 @@ -125,7 +125,7 @@ Fast StreamingSIMDExtensions2 $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;_DEBUG;DEBUG;PROFILE;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use @@ -141,23 +141,15 @@ false - - - - - - - - - + Level4 Disabled MultiThreadedDebugDLL Fast $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;_DEBUG;DEBUG;PROFILE;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use @@ -173,14 +165,6 @@ false - - - - - - - - @@ -189,7 +173,7 @@ Fast StreamingSIMDExtensions2 $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;NDEBUG;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use @@ -205,27 +189,20 @@ false - - - - - - - - - + Level4 MaxSpeed Fast $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;NDEBUG;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use /Zc:__cplusplus /ZH:SHA_256 %(AdditionalOptions) 5205 + true true @@ -236,14 +213,6 @@ false - - - - - - - - @@ -252,7 +221,7 @@ Fast StreamingSIMDExtensions2 $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;NDEBUG;PROFILE;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use @@ -268,27 +237,20 @@ false - - - - - - - - - + Level4 MaxSpeed Fast $(IntDir)$(TargetName).pdb - .\Binary;.\Inc;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)Binary;$(ProjectDir)Inc;%(AdditionalIncludeDirectories) pchfx.h WIN32;NDEBUG;PROFILE;_WINDOWS;_LIB;_WIN32_WINNT=0x0601;_CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS;%(PreprocessorDefinitions) Use /Zc:__cplusplus /ZH:SHA_256 %(AdditionalOptions) 5205 + true true @@ -299,14 +261,6 @@ false - - - - - - - - @@ -321,9 +275,9 @@ Create Create Create - Create - Create - Create + Create + Create + Create diff --git a/Effects11_Windows10.vcxproj b/Effects11_Windows10.vcxproj index ae35499..15321a4 100644 --- a/Effects11_Windows10.vcxproj +++ b/Effects11_Windows10.vcxproj @@ -296,6 +296,7 @@ pchfx.h $(IntDir)$(TargetName).pdb /Zc:__cplusplus /ZH:SHA_256 %(AdditionalOptions) + true Console @@ -330,6 +331,7 @@ pchfx.h $(IntDir)$(TargetName).pdb /Zc:__cplusplus /ZH:SHA_256 %(AdditionalOptions) + true Console diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..869fdfe --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,41 @@ + + +## Security + +Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). + +If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below. + +## Reporting Security Issues + +**Please do not report security vulnerabilities through public GitHub issues.** + +Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report). + +If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey). + +You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc). + +Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: + + * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) + * Full paths of source file(s) related to the manifestation of the issue + * The location of the affected source code (tag/branch/commit or direct URL) + * Any special configuration required to reproduce the issue + * Step-by-step instructions to reproduce the issue + * Proof-of-concept or exploit code (if possible) + * Impact of the issue, including how an attacker might exploit the issue + +This information will help us triage your report more quickly. + +If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs. + +## Preferred Languages + +We prefer all communications to be in English. + +## Policy + +Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd). + +