We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07586f6 commit 9d4064aCopy full SHA for 9d4064a
Zend/zend_alloc.c
@@ -1125,6 +1125,9 @@ ZEND_API zend_mm_heap *zend_mm_startup(void)
1125
if (zend_mm_low_bit(seg_size) != zend_mm_high_bit(seg_size)) {
1126
fprintf(stderr, "ZEND_MM_SEG_SIZE must be a power of two\n");
1127
exit(255);
1128
+ } else if (seg_size < ZEND_MM_ALIGNED_SEGMENT_SIZE + ZEND_MM_ALIGNED_HEADER_SIZE) {
1129
+ fprintf(stderr, "ZEND_MM_SEG_SIZE is too small\n");
1130
+ exit(255);
1131
}
1132
} else {
1133
seg_size = ZEND_MM_SEG_SIZE;
0 commit comments