Skip to content

Conversation

@Rtur2003
Copy link
Contributor

@Rtur2003 Rtur2003 commented Dec 7, 2025

Summary

  • track whether the hook jump buffer is initialized before longjmp
  • skip the jump when missing/invalid and fall back to crash reporting

Testing

  • manual: load a faulting plugin; verify no longjmp into uninitialized buffer and crash path is taken

…y tracking when the hook jump buffer is actually primed; a missing/invalid buffer now skips the jump and falls back to crash reporting
std::vector<SCallbackFNPtr>* getVecForEvent(const std::string& event);

bool m_currentEventPlugin = false;
bool m_hookFaultJumpBufReady = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the bool does nothing, it's never used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants