Skip to content

Commit

Permalink
Fix stacktarget handling in zai_hook_safe_finish
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Weinand <[email protected]>
  • Loading branch information
bwoebi committed Oct 29, 2024
1 parent 2a9899e commit db5ef76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zend_abstract_interface/interceptor/php8/interceptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ static void zai_hook_safe_finish(zend_execute_data *execute_data, zval *retval,
#ifdef __SANITIZE_ADDRESS__
, "+r"(fake_stack)
#endif
#if PHP_VERSION_ID >= 80300
, "+r"(stacktarget)
#else
: "r"(stacktarget)
#if defined(__SANITIZE_ADDRESS__) && defined(__aarch64__)
#endif
#if defined(__SANITIZE_ADDRESS__) && defined(__aarch64__) && !defined(__clang__)
: "x7"
#endif
);
Expand Down

0 comments on commit db5ef76

Please sign in to comment.