Skip to content

Commit

Permalink
Fixed bug #68677 (Use After Free in OPcache)
Browse files Browse the repository at this point in the history
(cherry picked from commit 777c39f)
  • Loading branch information
laruence authored and kaplanlior committed Mar 31, 2015
1 parent ffbd380 commit 0a8f28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/opcache/zend_shared_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ void *_zend_shared_memdup(void *source, size_t size, zend_bool free_source TSRML
retval = ZCG(mem);;
ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size));
memcpy(retval, source, size);
zend_shared_alloc_register_xlat_entry(source, retval);
if (free_source) {
interned_efree((char*)source);
}
zend_shared_alloc_register_xlat_entry(source, retval);
return retval;
}

Expand Down

0 comments on commit 0a8f28b

Please sign in to comment.