Skip to content

Commit

Permalink
AMICI: Fix potential out-of-bounds read in Model::checkFinite
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 13, 2023
1 parent b437b8e commit 1bf1b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/AMICI/src/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ int Model::checkFinite(
if (hasObservableIds())
row_id += " " + getObservableIds()[row];
if (hasParameterIds())
col_id += " " + getParameterIds()[plist(gsl::narrow<int>(col))];
col_id += " " + getParameterIds()[col];
break;
case ModelQuantity::dydx:
if (hasObservableIds())
Expand Down

0 comments on commit 1bf1b6e

Please sign in to comment.