Thanks to visit codestin.com
Credit goes to github.com

Skip to content

UPX removes CETCOMPAT flag from Windows EXE #909

@malikm

Description

@malikm

This issue tracker is ONLY used for reporting bugs.
Please use stackoverflow for supporting issues.

What's the problem (or question)?

UPX removes the CETCOMPAT flag (Control-flow Enforcement Technology / Hardware-enforced Stack Protection) from Windows EXE after compressing.

What should have happened?

UPX should preserve the CETCOMPAT flag (unless the UPX stub isn't compatible with CET).

Do you have an idea for a solution?

How can we reproduce the issue?

  1. Compress an EXE with CETCOMPAT flag set by linker
  2. Check status of Hardware-enforced Stack Protection - it won't be enabled
  3. CETCOMPAT flag of a running EXE can be checked via Windows Task Manager - Details tab - enable the "Hardware-enforced Stack Protection" column

Please tell us details about your environment.

  • UPX version used: 5.0.0
  • Host Operating System and version: Windows 11
  • Host CPU architecture: x64
  • Target Operating System and version: Windows 11
  • Target CPU architecture: x64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions