Skip to content

Commit 2178807

Browse files
committed
cs
1 parent 66a5172 commit 2178807

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Zend/zend_alloc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3517,15 +3517,15 @@ static void* poison_malloc(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
35173517
if (SIZE_MAX - heap->debug.padding * 2 < size) {
35183518
zend_mm_panic("Integer overflow in memory allocation");
35193519
}
3520-
size_t sizePlusPadding = size + heap->debug.padding * 2;
3520+
size_t size_plus_padding = size + heap->debug.padding * 2;
35213521

3522-
void *ptr = zend_mm_alloc_heap(heap, sizePlusPadding ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
3522+
void *ptr = zend_mm_alloc_heap(heap, size_plus_padding ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
35233523

35243524
if (EXPECTED(ptr)) {
35253525
if (heap->debug.poison_alloc) {
3526-
ZEND_MM_UNPOISON(ptr, sizePlusPadding);
3527-
memset(ptr, heap->debug.poison_alloc_value, sizePlusPadding);
3528-
ZEND_MM_POISON(ptr, sizePlusPadding);
3526+
ZEND_MM_UNPOISON(ptr, size_plus_padding);
3527+
memset(ptr, heap->debug.poison_alloc_value, size_plus_padding);
3528+
ZEND_MM_POISON(ptr, size_plus_padding);
35293529
}
35303530

35313531
ptr = (char*)ptr + heap->debug.padding;

0 commit comments

Comments
 (0)