]> git.eshelyaron.com Git - emacs.git/commitdiff
Lessen stack consumption in recursive read1
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Jul 2018 03:23:07 +0000 (20:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Jul 2018 03:23:47 +0000 (20:23 -0700)
* src/lread.c (read1): Shrink local buffer size from
MAX_ALLOCA to 128 (Bug#31995).

src/lread.c

index 72523c057f17ddc399d508172611f9f1f3c3b582..d5ba48a170d37a0ef0d43fb73418bb21af2631cd 100644 (file)
@@ -2677,7 +2677,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list)
   int c;
   bool uninterned_symbol = false;
   bool multibyte;
-  char stackbuf[MAX_ALLOCA];
+  char stackbuf[128];  /* Small, as read1 is recursive (Bug#31995).  */
   current_thread->stack_top = stackbuf;
 
   *pch = 0;