llvm.org GIT mirror llvm / 505883f
[llvm-rc] Fix DIALOG(EX) parsing ability (parser, pt 5/8). 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). Differential Revision: https://reviews.llvm.org/D37271 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312028 91177308-0d34-0410-b5e6-96231b3b80d8 Marek Sokolowski 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
328328 // [class] id, x, y, width, height [, style] [, exstyle] [, helpID]
329329 // Note that control ids must be integers.
330330 ASSIGN_OR_RETURN(ClassResult, readIdentifier());
331 StringRef ClassUpper = ClassResult->upper();
331 std::string ClassUpper = ClassResult->upper();
332332 if (Control::SupportedCtls.find(ClassUpper) == Control::SupportedCtls.end())
333333 return getExpectedError("control type, END or '}'", true);
334334