From 50cce5eb4f7c2627622875d9360b66b6c3234afe Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 28 Jun 2019 12:32:54 +0200 Subject: Avoid reliance on arena details on phpdbg oplog Instead of guessing what the address of the first arena allocation is going to be, embed the sentinel in the oplog_list structure directly. --- sapi/phpdbg/phpdbg_opcode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg_opcode.h') diff --git a/sapi/phpdbg/phpdbg_opcode.h b/sapi/phpdbg/phpdbg_opcode.h index f84862fbae..b9e2fa506c 100644 --- a/sapi/phpdbg/phpdbg_opcode.h +++ b/sapi/phpdbg/phpdbg_opcode.h @@ -40,7 +40,7 @@ struct _phpdbg_oplog_entry { typedef struct _phpdbg_oplog_list phpdbg_oplog_list; struct _phpdbg_oplog_list { phpdbg_oplog_list *prev; - phpdbg_oplog_entry *start; + phpdbg_oplog_entry start; /* Only "next" member used. */ }; #endif /* PHPDBG_OPCODE_H */ -- cgit v1.2.1