1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fixed bug #76427 (Segfault in zend_objects_store_put)

This commit is contained in:
Xinchen Hui
2018-06-11 21:00:09 +08:00
parent eebad01672
commit ffaee27478
6 changed files with 33 additions and 7 deletions

View File

@@ -37,6 +37,10 @@
(o) = (zend_object*)((((zend_uintptr_t)(n)) << 1) | OBJ_BUCKET_INVALID); \
} while (0)
#define ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(h) do { \
SET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[(h)], EG(objects_store).free_list_head); \
EG(objects_store).free_list_head = (h); \
} while (0)
#define OBJ_RELEASE(obj) zend_object_release(obj)