Skip to content

Commit 4369885

Browse files
committed
zend_max_execution_timers: fix uninitialized memory access
1 parent 8c3f5f9 commit 4369885

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,8 @@ static void executor_globals_ctor(zend_executor_globals *executor_globals) /* {{
802802
executor_globals->num_errors = 0;
803803
executor_globals->errors = NULL;
804804
#ifdef ZEND_MAX_EXECUTION_TIMERS
805+
memset(&executor_globals->max_execution_timer_timer, 0,
806+
sizeof(executor_globals->max_execution_timer_timer));
805807
executor_globals->pid = 0;
806808
executor_globals->oldact = (struct sigaction){0};
807809
#endif

0 commit comments

Comments
 (0)