Skip to content

LArLATOMEDecoder: check vector-size before writing

Walter Lampl requested to merge wlampl/athena:fixATLASRECTS-8094 into 24.0

This is a somewhat hacky fix for the crash reported in ATLASRECTS-8094. The cash occurs on run 431885, event 1603060100. This event suffers from severe data-corruption in the LAr Digital Trigger byte-stream fragment. When reading the corrupt data, we end up with memory overwrite (reported by valgrind as Invalid write of size 2) and a subsequent segfault. The exact execution path that leads to this crash is no clear to me and hard to trace given the spaghetti-code in LArLATOMEDecoder.cxx A better fix would require a rewrite of this class

This fix needs to be cherry-picked into 24.0.42.X (cc @dxu)

Merge request reports