Skip to content

Skip NOP codes when jumping back - #13

Open
saralmira wants to merge 2 commits into
Phobos-developers:masterfrom
saralmira:master
Open

saralmira wants to merge 2 commits into
Phobos-developers:masterfrom
saralmira:master

Conversation

@saralmira

Copy link
Copy Markdown

No description provided.

@github-actions

Copy link
Copy Markdown

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@Phobos-developers Phobos-developers deleted a comment from saralmira Oct 21, 2026
@Belonit

Belonit commented Oct 21, 2026

Copy link
Copy Markdown
Member

The change is equivalent as long as the skipped padding remains NOPs. If another DLL later writes executable code there, the new return address could skip it or land in the middle of an instruction.
I haven’t found such cases in Ares, Phobos, or yrpp-spawner, but this could potentially cause problems.

I think we should add logging to detect this situation.

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