Skip to content

Commit

Permalink
Fix use after free revealed by phpdbg
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Dec 5, 2017
1 parent 31b2b14 commit 092fd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/pcre/php_pcre.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ZEND_TLS pcre_jit_stack *jit_stack = NULL;
#if defined(ZTS) && defined(HAVE_PCRE_JIT_SUPPORT)
static MUTEX_T pcre_mt = NULL;
#define php_pcre_mutex_alloc() if (!pcre_mt) pcre_mt = tsrm_mutex_alloc();
#define php_pcre_mutex_free() if (pcre_mt) tsrm_mutex_free(pcre_mt);
#define php_pcre_mutex_free() if (pcre_mt) tsrm_mutex_free(pcre_mt); pcre_mt = NULL;
#define php_pcre_mutex_lock() tsrm_mutex_lock(pcre_mt);
#define php_pcre_mutex_unlock() tsrm_mutex_unlock(pcre_mt);
#else
Expand Down

0 comments on commit 092fd44

Please sign in to comment.