File tree 1 file changed +2
-2
lines changed
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)
1317
1317
#define ZEND_MM_FREE_SLOT_PTR_SHADOW (free_slot , bin_num ) \
1318
1318
*((zend_mm_free_slot**)((char*)(free_slot) + bin_data_size[(bin_num)] - sizeof(zend_mm_free_slot*)))
1319
1319
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 )
1321
1321
{
1322
1322
#if WORDS_BIGENDIAN
1323
1323
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
1350
1350
static 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 )
1351
1351
{
1352
1352
zend_mm_free_slot * next = slot -> next_free_slot ;
1353
- zend_mm_free_slot * shadow = ZEND_MM_FREE_SLOT_PTR_SHADOW (slot , bin_num );
1354
1353
if (EXPECTED (next != NULL )) {
1354
+ zend_mm_free_slot * shadow = ZEND_MM_FREE_SLOT_PTR_SHADOW (slot , bin_num );
1355
1355
if (UNEXPECTED (next != zend_mm_decode_free_slot (heap , shadow ))) {
1356
1356
zend_mm_panic ("zend_mm_heap corrupted" );
1357
1357
}
You can’t perform that action at this time.
0 commit comments