view test/bug-59937/bug-59937.tst @ 29324:1a20cb5be8da stable

avoid crash when evaling global variables into existence in script (bug #59937) * stack-frame.cc (script_stack_frame::mark_scope): Resize frame if data offset is out of bounds. * test/bug-59937/bug-59937.tst, test/bug-59937/eval_global_script.m, test/bug-59937/module.mk: New test files. * test/module.mk: Update.
author John W. Eaton <jwe@octave.org>
date Mon, 25 Jan 2021 15:13:06 -0500
parents
children 2838bbd84b87
line wrap: on
line source

%!test
%! eval_global_script
%! assert (isglobal (new_var_name));
%! assert (__varval__ (new_var_name), []);
%! eval (sprintf ("clear -global %s", new_var_name));