com php-src: Fix ubsan error on Mac: Zend/zend_alloc.c

From: Date: Thu, 17 Dec 2020 04:24:31 +0000
Subject: com php-src: Fix ubsan error on Mac: Zend/zend_alloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-114488@lists.php.net to get a copy of this message
Commit: 95a4e1ea3b689c6bdc666435933047df4aff3f6f Author: Levi Morrison <levi.morrison@datadoghq.com> Wed, 16 Dec 2020 21:24:31 -0700 Parents: 58d459f1ef615b28ff6368ff02e6ec3e0845a1c9 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=95a4e1ea3b689c6bdc666435933047df4aff3f6f Log: Fix ubsan error on Mac Fixes this error: > Zend/zend_alloc.c:473:73: runtime error: left shift of 250 by 24 places cannot be represented > in type 'int' Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc..c b/Zend/zend_alloc.c index 098dda104a4..750a4a6375c 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -117,7 +117,7 @@ static size_t _real_page_size = ZEND_MM_PAGE_SIZE; /* Mac allows to track anonymous page via vmmap per TAG id. * user land applications are allowed to take from 240 to 255. */ -# define ZEND_MM_FD (250<<24) +# define ZEND_MM_FD (250u << 24u) #endif #ifndef ZEND_MM_STAT

« previous php.cvs (#114488) next »