Skip to content

Commit c8336b2

Browse files
committed
change approach
1 parent b00ef4e commit c8336b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sapi/fuzzer/fuzzer-execute-common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "fuzzer.h"
2424
#include "fuzzer-sapi.h"
2525
#include "zend_exceptions.h"
26+
#include "zend_vm.h"
2627

2728
#define FILE_NAME "/tmp/fuzzer.php"
2829
#define MAX_STEPS 1000
@@ -63,7 +64,7 @@ static void fuzzer_execute_ex(zend_execute_data *execute_data) {
6364

6465
while (1) {
6566
fuzzer_step();
66-
opline = opline->handler(execute_data, opline);
67+
opline = ((zend_vm_opcode_handler_func_t) zend_get_opcode_handler_func(opline))(execute_data, opline);
6768
if ((uintptr_t) opline & ZEND_VM_ENTER_BIT) {
6869
opline = (const zend_op *) ((uintptr_t) opline & ~ZEND_VM_ENTER_BIT);
6970
if (opline) {

0 commit comments

Comments
 (0)