Zeex / sampgdk

Write SA-MP gamemodes in C/C++
http://zeex.github.io/sampgdk
Apache License 2.0
153 stars 83 forks source link

Fixed crash in sampgdk_callback_invoke #219

Closed ikkentim closed 2 years ago

ikkentim commented 2 years ago

When a new callback is registered during OnPublicCall(2) for which the callbacks array is resized, the callback variables will be pointing to freed memory which causes a call to a random memory address.

Fixes #215