You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When instrumenting wordpress/drupal hooks, we want to instrument the
hook function calls, which are dispatched by php's
call_user_function_array. This php function (cufa for short) is
flattened/inlined, so to determine if we are in a function called by a
cufa call, we need to check the opcodes of the caller to the current
function. If the caller is a php internal function, checking these
opcodes was not safe and lead to invalid reads. As such, before reading
the opcodes, we first check if the caller is a user function. We only
want to instrument cufa calls from user functions anyway.
---------
Co-authored-by: Michal Nowacki <[email protected]>
0 commit comments