Select Git revision
ModelTree.cc
Forked from
Dynare / preprocessor
Source project has a limited visibility.
-
Sébastien Villemot authored
Elements of params_derivatives could be accessed without them being defined, thus causing illegal memory read. Ensure that these elements always exist. By the way, use std::map::at() instead of std::map::find() to trigger an exception instead of an illegal memory read in that case.
Sébastien Villemot authoredElements of params_derivatives could be accessed without them being defined, thus causing illegal memory read. Ensure that these elements always exist. By the way, use std::map::at() instead of std::map::find() to trigger an exception instead of an illegal memory read in that case.