This fixes a use-after-free bug that was noticed by a sanitizer buildbot (http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/7502).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/tools/llvm-rc/ResourceScriptParser.cpp | ||
---|---|---|
333 ↗ | (On Diff #113140) | Just use if (!Control::SupportedCtrls.contains_lower(*ClassResult)) or better yet, add a function so that you can write if (!Control::isSupported(*ClassResult)) so you don't make this mistake again. |