Skip to content
Snippets Groups Projects

CxxUtils: Avoid out-of-bounds vector reference.

Merged Scott Snyder requested to merge ssnyder/athena:bounds.CxxUtils-20241213 into 24.0
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
// This file's extension implies that it's C, but it's really -*- C++ -*-.
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
/**
@@ -51,7 +51,7 @@ ArrayIteratorChooser<1>::const_iterator
ArrayIteratorChooser<1>::make_iterator (const Arrayrep* rep,
unsigned int offs)
{
return rep ? &rep->m_data[offs] : 0;
return rep ? rep->m_data.data()+offs : 0;
}
Loading