[LLVMbugs] [Bug 17400] New: null pointer reference in Parser::ParseMicrosoftAsmStatement

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Sep 28 16:59:15 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17400

            Bug ID: 17400
           Summary: null pointer reference in
                    Parser::ParseMicrosoftAsmStatement
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: quqq1 at qq.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11291
  --> http://llvm.org/bugs/attachment.cgi?id=11291&action=edit
fix

In

lib/Parse/ParseStmt.cpp

StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc)
...
const llvm::Target *TheTarget = llvm::TargetRegistry::lookupTarget(TT, Error);

TheTarget is never checked against null pointer.

See attached patch file.

-- 
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/20130928/5b0b79e8/attachment.html>


More information about the llvm-bugs mailing list