File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,9 @@ PHP_FUNCTION(socket_cmsg_space)
316316 size_t size = entry -> size + n * entry -> var_el_size ;
317317 size_t total_size = CMSG_SPACE (size );
318318 if (n > n_max /* zend_long overflow */
319+ #if SIZEOF_SIZE_T >= SIZEOF_ZEND_LONG
319320 || total_size > ZEND_LONG_MAX
321+ #endif
320322 || total_size < size /* align overflow */ ) {
321323 zend_argument_value_error (3 , "is too large" );
322324 RETURN_THROWS ();
Original file line number Diff line number Diff line change @@ -1016,7 +1016,7 @@ static ZEND_FUNCTION(zend_test_is_zend_ptr)
10161016 Z_PARAM_LONG (addr );
10171017 ZEND_PARSE_PARAMETERS_END ();
10181018
1019- RETURN_BOOL (is_zend_ptr ((void * )addr ));
1019+ RETURN_BOOL (is_zend_ptr ((void * )( intptr_t ) addr ));
10201020}
10211021
10221022static ZEND_FUNCTION (zend_test_log_err_debug )
You can’t perform that action at this time.
0 commit comments