LArLATOMEDecoder: check vector-size before writing
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)