[llvm-bugs] [Bug 50924] New: msvc fallback mode detection OOM

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 28 06:05:24 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50924

            Bug ID: 50924
           Summary: msvc fallback mode detection OOM
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: info at ustchcs.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/MSVC.cpp#L350:

  VSInstallPath.find(R"(\Common7\IDE)")

is not checked against std::string::npos and passed directly into
llvm::SmallString, which could result in an OOM on windows 7 sp1 (7601) with
visual studio 6.0 installed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210628/a132f68c/attachment.html>


More information about the llvm-bugs mailing list