Skip to content

fix: protect against out of bounds access - #425

Open
madbaron wants to merge 2 commits into
key4hep:mainfrom
madbaron:guard_oparticles
Open

fix: protect against out of bounds access#425
madbaron wants to merge 2 commits into
key4hep:mainfrom
madbaron:guard_oparticles

Conversation

@madbaron

@madbaron madbaron commented Sep 1, 2026

Copy link
Copy Markdown
Member

This PR fixes a minor issue discovered in OverlayTiming when testing #413 at scale.
It would be good to merge this before #413, so that 413 would rebase cleanly

BEGINRELEASENOTES

  • Fix OverlayTiming indexing its output MCParticle collection with the -1 of an unset relation. Calorimeter contributions without an attached particle caused an out-of-bounds access that crashed when the contributions were written out.
  • Background hits and contributions whose particle is not part of the copied background particles now keep their relation unset instead of being silently attached to the first particle of the background event.

ENDRELEASENOTES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant