Skip to content

Conversation

@Kenzzer
Copy link
Collaborator

@Kenzzer Kenzzer commented Mar 5, 2025

Reported by @Mikusch the extension was crashing under Hook_Frame, an erronous usage of erase function was causing the iterator to go invalid.

The debugging under linux was pretty terrible, due to the fact gcc/clang inlined the Refresh function into the loop, so to keep things sane with compiler optimization, I've told the compiler not to inline the function and I also switched the member function ptr call inside of Refresh to one of our helper class, both as an insurance the compiler doesn't try to offset the thisptr but also because I should have been using our helper class since the start.

@Kenzzer Kenzzer requested a review from KitRifty March 5, 2025 13:03
@Kenzzer Kenzzer merged commit eef8815 into master Mar 5, 2025
7 checks passed
@Kenzzer Kenzzer deleted the iterator_fix branch March 5, 2025 15:03
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.

3 participants