[LLVMbugs] [Bug 6105] New: AsmStmt should not use SmallVector

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 21 11:36:43 PST 2010


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

           Summary: AsmStmt should not use SmallVector
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kremenek at apple.com
                CC: llvmbugs at cs.uiuc.edu


AsmStmt uses SmallVector, which can allocate memory using 'malloc()'.  This can
lead to memory leaks when we use the BumpPtrAllocator to allocate AST nodes and
we do not call the destructor of AsmStmt objects.

Fix: AsmStmt should allocate all memory it uses with the allocator associated
with ASTContext.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list