Skip to content

Commit

Permalink
Fix uninitialized value watchpoint_hit
Browse files Browse the repository at this point in the history
Closes phpGH-15317.
  • Loading branch information
nielsdos committed Aug 9, 2024
1 parent 9aeb676 commit 2e26559
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sapi/phpdbg/phpdbg_watch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,7 @@ void phpdbg_setup_watchpoints(void) {
zend_hash_init(PHPDBG_G(watchlist_mem_backup), phpdbg_pagesize / (sizeof(Bucket) + sizeof(uint32_t)), NULL, NULL, 1);

PHPDBG_G(watch_tmp) = NULL;
PHPDBG_G(watchpoint_hit) = false;

#ifdef HAVE_USERFAULTFD_WRITEFAULT
PHPDBG_G(watch_userfaultfd) = syscall(SYS_userfaultfd, O_CLOEXEC);
Expand Down

0 comments on commit 2e26559

Please sign in to comment.