From 1bf1b6e0bd71aa5d744495f91ce0e85df3b47cf7 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Wed, 13 Dec 2023 09:35:09 +0100 Subject: [PATCH] AMICI: Fix potential out-of-bounds read in Model::checkFinite Backport https://github.com/AMICI-dev/AMICI/pull/2232 --- deps/AMICI/src/model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/AMICI/src/model.cpp b/deps/AMICI/src/model.cpp index 017b9cf8..46c9e990 100644 --- a/deps/AMICI/src/model.cpp +++ b/deps/AMICI/src/model.cpp @@ -1683,7 +1683,7 @@ int Model::checkFinite( if (hasObservableIds()) row_id += " " + getObservableIds()[row]; if (hasParameterIds()) - col_id += " " + getParameterIds()[plist(gsl::narrow(col))]; + col_id += " " + getParameterIds()[col]; break; case ModelQuantity::dydx: if (hasObservableIds())