shimat / opencvsharp

OpenCV wrapper for .NET
Apache License 2.0
5.39k stars 1.15k forks source link

Windows Application Certificate Kit reported Binary Analysis Failure on OpenCvSharpExtern.dll and opencv_videoio_ffmpeg452.dll #1282

Closed freistli closed 2 years ago

freistli commented 3 years ago

Summary of your issue

With latest OpenCVSharp nuget for UWP, the created Store package fails on WACK checking.

The OpenCvSharpExtern.dll cannot pass DBCheck, and opencv_videoio_ffmpeg452.dll cannot pass SafeSEHCheck.

This cause WACK failure and cannot submit to Windows Store.

Environment

Win 10 19041

What did you do when you faced the problem?

When using latest OpenCVSharp nuget for UWP:

WACK output (run C:\Program Files (x86)\Windows Kits\10\App Certification Kit\appcertui.exe):

==================================

Binary analyzer Error found: The binary analyzer test detected the following error:

File OpenCvSharpExtern.dll failed DBCheck check. File opencv_videoio_ffmpeg452.dll failed safeSEHCheck check

Impact when not fixed: If your app isn't using available Windows protection, it can increase vulnerabilities for customers whose computers are exposed to malware.

How to fix: Apply the required linker options when linking apps - SAFESEH, DYNAMICBASE, NXCOMPAT, and APPCONTAINER. For more information, see the link below:

https://docs.microsoft.com/en-us/previous-versions/windows/hh920280(v=win.10)?redirectedfrom=MSDN#binscope

==================================

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.