Skip to content
Snippets Groups Projects
Commit 291e393f authored by Felix Weiglhofer's avatar Felix Weiglhofer
Browse files

StsReadoutConfigLegacy: Fix out-of-bounds read on map creation.

parent 4da3969a
No related branches found
Tags dev_2023_24
1 merge request!1171algo: read STS Unpacker setup from yaml.
Pipeline #22585 passed
......@@ -161,10 +161,10 @@ namespace cbm::algo
int16_t feb = elink2Feb[elinkId]; // FEB within CROB
if (feb != -1) {
int16_t module = feb2module[comp][crob][feb]; // Module index
moduleAddress = modAddress[module];
if (module != -1) {
assert(module < numModules);
moduleAddress = modAddress[module];
bool moduleType = modType[module]; // 0 or 1
int16_t moduleSide = feb2moduleSide[comp][crob][feb]; // 0 or 1, -1 is inactive
int16_t febType = (moduleType == 0 ? moduleSide : !moduleSide); // 0 = FEB A, 1 = FEB B
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment