Skip to content

Refuse unsafe process selection from a file target - #99

Merged
ShadowNineX merged 1 commit into
mainfrom
codex/file-target-transition-guard
Oct 19, 2026
Merged

ShadowNineX merged 1 commit into
mainfrom
codex/file-target-transition-guard

Conversation

@ShadowNineX

Copy link
Copy Markdown
Collaborator

When Cheat Engine has a file-as-process target open, calling openProcess can report success while the memory backend remains unusable. SelectAndObserve now observes the current target first and returns FileAsProcessTarget before attempting that unsafe transition. Missing, failed, or malformed observations also refuse selection; an unattached or ordinary process target still follows the existing confirmed-selection path.

The guard preserves the selected file and the caller's Lua stack. It does not reset Cheat Engine callbacks or claim to repair the native file-to-process transition; callers must use Cheat Engine's process selector or restart the host.

Validation: 83 focused NativeLua tests and all 1,223 Release Engine tests passed. The full SDK Release solution build passed with zero warnings or errors. Regression coverage distinguishes preflight refusal from a file-target observation returned after an attempted selection.

@ShadowNineX
ShadowNineX requested a review from AriusII as a code owner October 19, 2026 18:26
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: CheatEngineNet/CheatEngine.SDK/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: c7d16c49-73c5-469b-b757-cf141393166f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@ShadowNineX
ShadowNineX merged commit 7c5b681 into main Oct 19, 2026
20 checks passed
@ShadowNineX
ShadowNineX deleted the codex/file-target-transition-guard branch October 19, 2026 18:41
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.

1 participant