From 0ffb4c030bd8f02b23e78cfe4a9f75d73605cabc Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Thu, 21 Nov 2024 23:21:22 +0100 Subject: [PATCH] [UBSAN][LST]Fix runtime error by keep the region object alive --- RecoTracker/LST/plugins/LSTOutputConverter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RecoTracker/LST/plugins/LSTOutputConverter.cc b/RecoTracker/LST/plugins/LSTOutputConverter.cc index 0bbdd68051b87..73209db234b5e 100644 --- a/RecoTracker/LST/plugins/LSTOutputConverter.cc +++ b/RecoTracker/LST/plugins/LSTOutputConverter.cc @@ -194,8 +194,8 @@ void LSTOutputConverter::produce(edm::Event& iEvent, const edm::EventSetup& iSet hitsForSeed.emplace_back(dynamic_cast(&hit)); nHits++; } - - seedCreator_->init(GlobalTrackingRegion(), iSetup, nullptr); + GlobalTrackingRegion region; + seedCreator_->init(region, iSetup, nullptr); seedCreator_->makeSeed(seeds, hitsForSeed); if (seeds.empty()) { edm::LogInfo("LSTOutputConverter")