From 77ff277a65ef5f362b6f2f9ccf81db88276d58d3 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Tue, 12 Dec 2023 11:24:14 +0100 Subject: [PATCH] Fix potential out-of-bounds read in Model::checkFinite --- src/model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.cpp b/src/model.cpp index 218870cafe..3c78802731 100644 --- a/src/model.cpp +++ b/src/model.cpp @@ -1818,7 +1818,7 @@ int Model::checkFinite(SUNMatrix m, ModelQuantity model_quantity, realtype t) if (hasExpressionIds()) row_id += " " + getExpressionIds()[row]; if (hasParameterIds()) - col_id += " " + getParameterIds()[plist(gsl::narrow(col))]; + col_id += " " + getParameterIds()[col]; break; default: break;