Skip to content

Validate process-selection confirmation before accepting attachment - #98

Merged
ShadowNineX merged 1 commit into
mainfrom
codex/process-selection-result
Oct 19, 2026
Merged

ShadowNineX merged 1 commit into
mainfrom
codex/process-selection-result

Conversation

@ShadowNineX

Copy link
Copy Markdown
Collaborator

Cheat Engine can assign the requested PID before opening its process handle. The SDK previously discarded openProcess's return value, so a matching PID could be reported as a successful attachment without CE's nonzero-handle confirmation.

Require boolean true before checking the selected PID and bitness. Missing or false confirmation returns SelectionNotConfirmed; malformed confirmation returns InvalidResult. Update the contract documentation and preserve the existing successful-selection, mismatched-PID and Lua-error cases.

Validation: all five new regression cases incorrectly returned success before the fix and passed afterward. All 77 affected-class cases and 751 Engine NativeLua cases passed with zero failures or skips. The complete SDK Release build passed with zero warnings or errors. Rebasing onto the merged callback-cleanup fix left the tested file contents unchanged.

This fixes an independently demonstrated selection invariant. The cause of the observed live file-target restoration failure remains under investigation.

@ShadowNineX
ShadowNineX requested a review from AriusII as a code owner October 19, 2026 16:44
@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: 731843ed-9d77-4f9a-910b-6a985a339904
  • 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 900f240 into main Oct 19, 2026
20 checks passed
@ShadowNineX
ShadowNineX deleted the codex/process-selection-result branch October 19, 2026 17:29
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