diff --git a/src/core/c-frame.c b/src/core/c-frame.c index abd2cdf597..d5ccfdb16a 100644 --- a/src/core/c-frame.c +++ b/src/core/c-frame.c @@ -815,6 +815,8 @@ REBCNT n; REBFLG selfish = !IS_SELFLESS(frame); + CHECK_STACK(&n); + for (; NOT_END(value); value++) { if (ANY_WORD(value)) { //Print("Word: %s", Get_Sym_Name(VAL_WORD_CANON(value))); diff --git a/src/tests/units/crash-test.r3 b/src/tests/units/crash-test.r3 index 953c5460a0..3a1caa6c6d 100644 --- a/src/tests/units/crash-test.r3 +++ b/src/tests/units/crash-test.r3 @@ -232,6 +232,13 @@ foreach [n s] system/schemes [ ;@@ https://github.com/Oldes/Rebol-issues/issues/767 --assert same? :greater? copy :greater? ;-no crash +--test-- "recursive bind" + ;@@ https://github.com/Oldes/Rebol-issues/issues/2278 + obj: make object! [x: 10] + blk: copy [x] + append/only blk blk + --assert all [error? e: try [bind block obj] e/id = 'stack-overflow] + ===end-group=== ~~~end-file~~~ \ No newline at end of file