From 0b3b25979478ed8af7b337b9ed6739fd69dfeee8 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 5 Oct 2021 16:45:55 +0100 Subject: 49433: Don't assume EPROG references are bounded by function depth. We use references for efficient function copy, so there is no useful limit any more. --- Src/parse.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Src') diff --git a/Src/parse.c b/Src/parse.c index 10d193ba1..d612b7e17 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -2811,10 +2811,6 @@ freeeprog(Eprog p) DPUTS(p->nref > 0 && (p->flags & EF_HEAP), "Heap EPROG has nref > 0"); DPUTS(p->nref < 0 && !(p->flags & EF_HEAP), "Real EPROG has nref < 0"); DPUTS(p->nref < -1, "Uninitialised EPROG nref"); -#ifdef MAX_FUNCTION_DEPTH - DPUTS(zsh_funcnest >=0 && p->nref > zsh_funcnest + 10, - "Overlarge EPROG nref"); -#endif if (p->nref > 0 && !--p->nref) { for (i = p->npats, pp = p->pats; i--; pp++) freepatprog(*pp); -- cgit 1.4.1