Skip to content

Conversation

@nomoemptypointer
Copy link
Contributor

@nomoemptypointer nomoemptypointer commented Dec 16, 2025

Windows 10 LTSC 2021 and earlier Windows 10 builds do not support Control-flow Enforcement Technology (CET). Starting with .NET 9.0, CET compatibility is enabled by default, which causes ImageGlass to crash on these systems at startup.

This PR resolves the issue by explicitly disabling CET compatibility for ImageGlass.

ImageGlass is:

  • Not security-critical
  • Not exposed to untrusted native plugins or arbitrary code execution

For this application, CET provides minimal practical security benefit. Disabling CET:

  • Restores compatibility with unsupported Windows versions
  • Does not introduce instability
  • Does not reduce system-wide security, as the change applies only to this process

Reference:
https://learn.microsoft.com/en-us/dotnet/core/compatibility/interop/9.0/cet-support

Copy link
Owner

@d2phap d2phap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nomoemptypointer, can you apply the same setting for igcmd.csproject

@nomoemptypointer
Copy link
Contributor Author

nomoemptypointer commented Dec 18, 2025

I have now disabled CET Compatibility inside igcmd.csproj

Edit: I'm editing this via web as I don't have any text editor currently installed and I think GitHub for some reason reformatted the csproj, let me know if that's a issue

Copy link
Owner

@d2phap d2phap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@d2phap d2phap merged commit ca5a4f8 into d2phap:develop Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants