New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix use-after-free in DynamicTruncation::preliminaryFit #9282
Fix use-after-free in DynamicTruncation::preliminaryFit #9282
Conversation
On the first iteration we used end() of STL container. end() returns a pointer after the last element in container. In this case, we were starting iteration from the last __removed__ `TrackingRecHit`. Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
A new Pull Request was created by @davidlt for CMSSW_7_5_X. Fix use-after-free in DynamicTruncation::preliminaryFit It involves the following packages: RecoMuon/GlobalTrackingTools @cmsbuild, @cvuosalo, @nclopezo, @slava77 can you please review it and eventually sign? Thanks. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
@davidlt David, please make a PR for 74X as well. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_5_X IBs unless changes (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @nclopezo, @smuzaffar |
+1 |
Fix use-after-free in DynamicTruncation::preliminaryFit
…070115/fix-9282-bp Fix use-after-free in DynamicTruncation::preliminaryFit (backport of 75X #9282 )
On the first iteration we used end() of STL container. end() returns
a pointer after the last element in container. In this case, we were
starting iteration from the last removed
TrackingRecHit
.Signed-off-by: David Abdurachmanov David.Abdurachmanov@cern.ch