1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-10 12:40:58 +02:00

31772: queue_signals() to prevent re-entry into endparamscope().

This commit is contained in:
Barton E. Schaefer 2013-09-26 21:27:27 -07:00
parent 98b0828c63
commit ae92cadc75
2 changed files with 5 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2013-09-26 Barton E. Schaefer <schaefer@zsh.org>
* 31772: Src/params.c: queue_signals() to prevent re-entry into
endparamscope().
* 31770: Src/hist.c: memmove() instead of memcpy() for overlapping
regions.

View file

@ -4667,10 +4667,12 @@ startparamscope(void)
mod_export void
endparamscope(void)
{
queue_signals();
locallevel--;
/* This pops anything from a higher locallevel */
saveandpophiststack(0, HFILE_USE_OPTIONS);
scanhashtable(paramtab, 0, 0, 0, scanendscope, 0);
unqueue_signals();
}
/**/