Reduce stack size to 3k.

Hush uses recursion for (at least) parsing nested constructs like { ... }, so it's possible for pathological/malicious scripts to overflow the stack, but this should be enough for just about anything non-pathological (e.g. up to about 10 levels of nested { }).
This commit is contained in:
Stephen Heumann 2014-12-26 16:33:17 -06:00
parent 79371e2122
commit 4c37e05f0c
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ LIBS = -l/usr/lib/libtermcap.204
# Optimize bit 6 breaks some standard-compliant varargs code,
# and bits 0, 4, and 5 have known bugs. Disable for now.
CFLAGS = -i -w -a1 -O8
STACKSIZE = 4096
STACKSIZE = 3072
.IF $(DEBUG)
CFLAGS += -g -DDEBUG