Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions sapi/fuzzer/fuzzer-execute-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
static uint32_t steps_left;
static bool bailed_out = false;

/* Because the fuzzer is always compiled with clang,
* we can assume that we don't use global registers / hybrid VM. */
typedef zend_op *(ZEND_FASTCALL *opcode_handler_t)(zend_execute_data *, const zend_op *);

static zend_always_inline void fuzzer_bailout(void) {
bailed_out = true;
zend_bailout();
Expand Down Expand Up @@ -67,7 +63,7 @@ static void fuzzer_execute_ex(zend_execute_data *execute_data) {

while (1) {
fuzzer_step();
opline = ((opcode_handler_t) opline->handler)(execute_data, opline);
opline = opline->handler(execute_data, opline);
if ((uintptr_t) opline & ZEND_VM_ENTER_BIT) {
opline = (const zend_op *) ((uintptr_t) opline & ~ZEND_VM_ENTER_BIT);
if (opline) {
Expand Down