Skip to content

Commit

Permalink
Initialise the errors_ data member
Browse files Browse the repository at this point in the history
Prevents reading from uninitialised memory when the first event of a
job has zero error words.

Fixes a crash observed at HLT during data taking.
  • Loading branch information
fwyzard committed Jun 22, 2022
1 parent ccd5266 commit 2c18a14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SiPixelDigiErrorsSoAFromCUDA : public edm::stream::EDProducer<edm::Externa
edm::EDPutTokenT<SiPixelErrorsSoA> digiErrorPutToken_;

cms::cuda::host::unique_ptr<SiPixelErrorCompact[]> data_;
cms::cuda::SimpleVector<SiPixelErrorCompact> error_;
cms::cuda::SimpleVector<SiPixelErrorCompact> error_ = cms::cuda::make_SimpleVector<SiPixelErrorCompact>(0, nullptr);
const SiPixelFormatterErrors* formatterErrors_ = nullptr;
};

Expand Down

0 comments on commit 2c18a14

Please sign in to comment.