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 bug in typeCode #9310
Fix use-after-free bug in typeCode #9310
Conversation
`edm::TypeWithDict::name()` returns a `std::string`. The code was taking a pointer to temporary string. Thus causing CutParser to fail depending on random values in memory. Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
A new Pull Request was created by @davidlt for CMSSW_7_4_X. Fix use-after-free bug in typeCode It involves the following packages: CommonTools/Utils @nclopezo, @cvuosalo, @monttj, @cmsbuild, @slava77, @vadler can you please review it and eventually sign? Thanks. |
+1
@davidlt Thanks for making the backport |
Fix use-after-free bug in typeCode
edm::TypeWithDict::name()
returns astd::string
. The code wastaking a pointer to temporary string. Thus causing CutParser to
fail depending on random values in memory.
Signed-off-by: David Abdurachmanov David.Abdurachmanov@cern.ch