Skip to content

Hardening security with compiler switches - /GS and /HIGHENTROPYVA #1841

Description

@valdasmisevicius

We are using NuGet package. But our security audit check complains about opencv_videoio_ffmpegxxx.dll that it is compiled without security hardening flags /GS and /HIGHENTROPYVA
Here is Microsoft recommendations: https://learn.microsoft.com/en-us/cpp/build/reference/gs-buffer-security-check, https://learn.microsoft.com/en-us/cpp/build/reference/highentropyva-support-64-bit-aslr

I see there is ENABLE_BUILD_HARDENING option in opencv CMakeLists.txt (https://github.com/opencv/opencv/blob/d719c6d84a6139e07e81abd3814a3c23756f63eb/CMakeLists.txt#L534)

Is there any way these switches can be enabled for the NuGet build?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to OpenCvSharp

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions