From 5b4de52083512d1676b54666a701c931d04b866a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Mon, 1 Jun 2020 13:10:46 -0700 Subject: BR 3392667: more reasonable limit for expression descent Set an expression descent limit to 8192, which is more reasonable to expect to work on most platforms. Furthermore, if getrlimit() exists, then try to use it to see if we need to further limit the size. Signed-off-by: H. Peter Anvin (Intel) --- config/unconfig.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config') diff --git a/config/unconfig.h b/config/unconfig.h index 4b01eb6e..d01c2b3e 100644 --- a/config/unconfig.h +++ b/config/unconfig.h @@ -271,6 +271,9 @@ /* Define to 1 if you have the `getpagesize' function. */ /* #undef HAVE_GETPAGESIZE */ +/* Define to 1 if you have the `getrlimit' function. */ +/* #undef HAVE_GETRLIMIT */ + /* Define to 1 if you have the `getuid' function. */ /* #undef HAVE_GETUID */ @@ -385,6 +388,9 @@ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_PARAM_H */ +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_RESOURCE_H */ + /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_STAT_H */ -- cgit v1.2.1