summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-01 13:10:46 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-01 13:21:05 -0700
commit5b4de52083512d1676b54666a701c931d04b866a (patch)
treec1bbddf0ea5dd14d0b236440a00edc443843a4d7 /config
parent5d68f9823e6a4198b8fec73b03c1d0125a2aa6a8 (diff)
downloadnasm-5b4de52083512d1676b54666a701c931d04b866a.tar.gz
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) <hpa@zytor.com>
Diffstat (limited to 'config')
-rw-r--r--config/unconfig.h6
1 files changed, 6 insertions, 0 deletions
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 <sys/param.h> header file. */
/* #undef HAVE_SYS_PARAM_H */
+/* Define to 1 if you have the <sys/resource.h> header file. */
+/* #undef HAVE_SYS_RESOURCE_H */
+
/* Define to 1 if you have the <sys/stat.h> header file. */
/* #undef HAVE_SYS_STAT_H */