Skip to content

Commit

Permalink
Merge pull request #46758 from smuzaffar/ubsan-LSTOutputConverter-fix
Browse files Browse the repository at this point in the history
[UBSAN][LST]Fix runtime error by keep the region object alive
  • Loading branch information
cmsbuild authored Nov 22, 2024
2 parents 5e0fbce + 0ffb4c0 commit 6ac9132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecoTracker/LST/plugins/LSTOutputConverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ void LSTOutputConverter::produce(edm::Event& iEvent, const edm::EventSetup& iSet
hitsForSeed.emplace_back(dynamic_cast<Hit>(&hit));
nHits++;
}

seedCreator_->init(GlobalTrackingRegion(), iSetup, nullptr);
GlobalTrackingRegion region;
seedCreator_->init(region, iSetup, nullptr);
seedCreator_->makeSeed(seeds, hitsForSeed);
if (seeds.empty()) {
edm::LogInfo("LSTOutputConverter")
Expand Down

0 comments on commit 6ac9132

Please sign in to comment.