Mercurial > octave
comparison libinterp/corefcn/call-stack.cc @ 29064:336356206de7 stable
don't clear stack frame values indirectly through call stack (bug #59432)
* pt-eval.cc (tree_evaluator::execute_user_function): Save reference
to current stack frame in unwind_action instead of using
call_stack::clear_current_frame_values.
* call-stack.h, call-stack.cc (call_stack::clear_current_frame_values):
Delete unused function.
* stack-frame.cc (stack_frame::clear_values): Issue warning instead of
calling panic_impossible.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 13 Nov 2020 20:38:28 -0500 |
parents | 7e0712b3388f |
children | be19672a3c49 6f6b5f2e5d4d |
comparison
equal
deleted
inserted
replaced
29062:9d42195f42e9 | 29064:336356206de7 |
---|---|
1102 } | 1102 } |
1103 | 1103 |
1104 return octave_value (); | 1104 return octave_value (); |
1105 } | 1105 } |
1106 | 1106 |
1107 void call_stack::clear_current_frame_values (void) | |
1108 { | |
1109 m_cs[m_curr_frame]->clear_values (); | |
1110 } | |
1111 | |
1112 void call_stack::display (void) const | 1107 void call_stack::display (void) const |
1113 { | 1108 { |
1114 std::ostream& os = octave_stdout; | 1109 std::ostream& os = octave_stdout; |
1115 | 1110 |
1116 size_t nframes = size (); | 1111 size_t nframes = size (); |