From af16d43af82ad0d05710c42232332a400614d3ea Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 11 Oct 2021 09:23:39 +0300 Subject: fixed crashes when the Q-Reg stack is non-empty at exit * Test case: sciteco -e '[a' [aEX$$ in interactive mode would also crash. * No longer use a destructor - it was executed after the Q-Reg view was destroyed. * Instead, we now explicitly call teco_qreg_stack_clear() in main(). * Added a regression test case. --- tests/testsuite.at | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.at b/tests/testsuite.at index ab24504..d9bb67d 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -89,6 +89,10 @@ AT_SETUP([Memory limiting during spawning]) AT_CHECK([$SCITECO -e "50*1000*1000,2EJ 0,128ED @EC'dd if=/dev/zero'"], 1, ignore, ignore) AT_CLEANUP +AT_SETUP([Q-Register stack cleanup]) +AT_CHECK([$SCITECO -e '@<:@a'], 0, ignore, ignore) +AT_CLEANUP + AT_BANNER([Known Bugs]) AT_SETUP([Pattern matching overflow]) -- cgit v1.2.3