Skip to content

Commit

Permalink
[UBSAN][LST]Fix runtime error by keep the region object alive
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Nov 21, 2024
1 parent 20350c3 commit 0ffb4c0
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 0ffb4c0

Please sign in to comment.