Skip to content
Snippets Groups Projects
Commit 82a95d51 authored by Scott Snyder's avatar Scott Snyder Committed by Duc Ta
Browse files

TRT_ConditionsData: Fix out-of-bounds vector accesses.

TRT_ConditionsData: Fix out-of-bounds vector accesses.

resize/reserve confusion.
parent 7774467d
No related branches found
No related tags found
2 merge requests!768302024-12-18: merge of 24.0 into main,!76776TRT_ConditionsData: Fix out-of-bounds vector accesses.
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#include "TRT_ConditionsData/StrawStatusData.h"
......@@ -8,8 +8,8 @@ namespace TRTCond
{
StrawStatusData::StrawStatusData(size_t nstraws)
: m_status (nstraws)
{
m_status.reserve(nstraws);
}
void StrawStatusData::setStatus(const IdentifierHash &hashId, unsigned int status)
......
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#include "TRT_ConditionsData/StrawStatusSummary.h"
......@@ -8,8 +8,8 @@ namespace TRTCond
{
StrawStatusSummary::StrawStatusSummary(size_t nstraws)
: m_status (nstraws)
{
m_status.reserve(nstraws);
}
void StrawStatusSummary::setStatus(const IdentifierHash &hashId, bool status)
......
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