File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1317,7 +1317,7 @@ static zend_always_inline int zend_mm_small_size_to_bin(size_t size)
13171317#define ZEND_MM_FREE_SLOT_PTR_SHADOW (free_slot , bin_num ) \
13181318 *((zend_mm_free_slot**)((char*)(free_slot) + bin_data_size[(bin_num)] - sizeof(zend_mm_free_slot*)))
13191319
1320- static zend_always_inline zend_mm_free_slot * zend_mm_encode_free_slot (zend_mm_heap * heap , zend_mm_free_slot * slot )
1320+ static zend_always_inline zend_mm_free_slot * zend_mm_encode_free_slot (const zend_mm_heap * heap , const zend_mm_free_slot * slot )
13211321{
13221322#if WORDS_BIGENDIAN
13231323 return (zend_mm_free_slot * )(((uintptr_t )slot ) ^ heap -> shadow_key );
@@ -1350,8 +1350,8 @@ static zend_always_inline void zend_mm_copy_next_free_slot(zend_mm_free_slot* de
13501350static zend_always_inline zend_mm_free_slot * zend_mm_check_next_free_slot (zend_mm_heap * heap , uint32_t bin_num , zend_mm_free_slot * slot )
13511351{
13521352 zend_mm_free_slot * next = slot -> next_free_slot ;
1353- zend_mm_free_slot * shadow = ZEND_MM_FREE_SLOT_PTR_SHADOW (slot , bin_num );
13541353 if (EXPECTED (next != NULL )) {
1354+ zend_mm_free_slot * shadow = ZEND_MM_FREE_SLOT_PTR_SHADOW (slot , bin_num );
13551355 if (UNEXPECTED (next != zend_mm_decode_free_slot (heap , shadow ))) {
13561356 zend_mm_panic ("zend_mm_heap corrupted" );
13571357 }
You can’t perform that action at this time.
0 commit comments