Limit stack size (#9104)

This commit is contained in:
Arnaud Le Blanc 2022-12-16 08:44:26 -08:00 committed by GitHub
parent dc54e04ed4
commit a11c8a3039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 1844 additions and 12 deletions

View file

@ -2733,6 +2733,26 @@ AC_DEFUN([PHP_CHECK_BUILTIN_CPU_SUPPORTS], [
[$have_builtin_cpu_supports], [Whether the compiler supports __builtin_cpu_supports])
])
dnl
dnl PHP_CHECK_BUILTIN_FRAME_ADDRESS
dnl
AC_DEFUN([PHP_CHECK_BUILTIN_FRAME_ADDRESS], [
AC_MSG_CHECKING([for __builtin_frame_address])
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[
return __builtin_frame_address(0) != (void*)0;
]])], [
have_builtin_frame_address=1
AC_MSG_RESULT([yes])
], [
have_builtin_frame_address=0
AC_MSG_RESULT([no])
])
AC_DEFINE_UNQUOTED([PHP_HAVE_BUILTIN_FRAME_ADDRESS],
[$have_builtin_frame_address], [Whether the compiler supports __builtin_frame_address])
])
dnl
dnl PHP_PATCH_CONFIG_HEADERS([FILE])
dnl