From 05cfaba7e03a958b42469c80646551fdc9deded0 Mon Sep 17 00:00:00 2001 From: RYAN A RIVERA Date: Tue, 26 Mar 2024 13:15:54 -0500 Subject: [PATCH] Fixing potential crash that could be caused by input arg mismatch. --- otsdaq/FECore/FEVInterface.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otsdaq/FECore/FEVInterface.cc b/otsdaq/FECore/FEVInterface.cc index 9042dbd8..6af996a4 100644 --- a/otsdaq/FECore/FEVInterface.cc +++ b/otsdaq/FECore/FEVInterface.cc @@ -818,7 +818,7 @@ void FEVInterface::runSelfFrontEndMacro(const std::string& feMacroName, const FEVInterface::frontEndMacroStruct_t& feMacro = FEMacroIt->second; // check for input arg name match - for(unsigned int i = 0; i < argsIn.size(); ++i) + for(unsigned int i = 0; i < argsIn.size() && i < feMacro.namesOfInputArguments_.size(); ++i) if(argsIn[i].first != feMacro.namesOfInputArguments_[i]) { __CFG_SS__ << "FE Macro '" << feMacro.feMacroName_ << "' of interfaceID '" << getInterfaceUID() << "' was attempted with a mismatch in"