TeamREPENTOGON / TeamREPENTOGON/REPENTOGON

ZHL trampolines should respect SEH

Open
#845 0 comments 0 reactions 1 assignee View on GitHub

@Sylmir is already working on this.

Since Mar 27, 2026.

bug ZHL
Dominant language
C++
Stars
345
Forks
51
Avg merge
11h 2m
Merged PRs (30d)
4

Description

naked functions do not contain the necessary prologue and epilogue to handle exceptions properly (precisely because they are naked). As a result, it appears all our naked functions border on undefined behavior if an exception is raised by the game while there is a trampoline on the stack.

Update the generation of the trampolines to include a forwarding SEH handler that naturally propagates the exception to the next frame.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.