Skip to content
Snippets Groups Projects
Verified Commit dc9a96c4 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

:bug: Avoid illegal memory access when variable name is used as a function call

The call to model_error() would return and lead to an incorrect dereferencing
of the optional<int> rv.

The call to model_error() should have been replaced by a call to error() in
db1f6c29. Then the move to an optional<int> in
46b2c735 introduced the bug.

See https://forum.dynare.org/t/preprocessing-failed-for-specific-mod-file/26705

(cherry picked from commit 96b6dfa8)
parent 72c31e9f
No related merge requests found
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment