llvm-toolchain-snapshot-3.5~svn206038 - scan-build results

User:pbuilder@irill3
Working Directory:/tmp/buildd/llvm-toolchain-snapshot-3.5~svn206038
Command Line:/usr/bin/make -j 7 -C build-llvm VERBOSE=1 CLANG_VENDOR=Debian 'CXXFLAGS= -std=c++0x' 'LDFLAGS= -fuse-ld=gold' REQUIRES_RTTI=1 DEBUGMAKE=1
Clang Version:Debian clang version 3.5.0-1~exp1 (trunk) (based on LLVM 3.5.0)
Date:Fri Apr 11 17:17:56 2014

Bug Summary

Bug TypeQuantityDisplay?
All Bugs202
Dead store
Dead assignment58
Dead increment9
Dead initialization5
Logic error
Assigned value is garbage or undefined1
Called C++ object pointer is null58
Called C++ object pointer is uninitialized1
Called function pointer is null (null dereference)3
Dereference of null pointer18
Division by zero3
Garbage return value4
Result of operation is garbage or undefined18
Returning null reference1
Uninitialized argument value7
Memory Error
Memory leak8
Use-after-free4
Security
Potential insecure temporary file in call 'mktemp'3
Unix API
Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)1

Reports

Bug Group Bug Type ▾ File Line Path Length
Logic errorAssigned value is garbage or undefinedlib /Object /IRObjectFile.cpp923View Report
Logic errorCalled C++ object pointer is nulllib /Target /X86 /MCTargetDesc /X86MachObjectWriter.cpp5587View Report
Logic errorCalled C++ object pointer is nulllib /Target /ARM /AsmParser /ARMAsmParser.cpp92792View Report
Logic errorCalled C++ object pointer is nullclang /lib /Serialization /ModuleManager.cpp3894View Report
Logic errorCalled C++ object pointer is nullclang /lib /Serialization /ModuleManager.cpp3904View Report
Logic errorCalled C++ object pointer is nulllib /CodeGen /CriticalAntiDepBreaker.cpp4467View Report
Logic errorCalled C++ object pointer is nullclang /unittests /Basic /FileManagerTest.cpp905View Report
Logic errorCalled C++ object pointer is nullclang /unittests /Basic /FileManagerTest.cpp813View Report
Logic errorCalled C++ object pointer is nulllib /Analysis /RegionPrinter.cpp934View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /ASTDumper.cpp60218View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /VTableBuilder.cpp41410View Report
Logic errorCalled C++ object pointer is nulllib /Transforms /Scalar /ScalarReplAggregates.cpp19853View Report
Logic errorCalled C++ object pointer is nulllib /CodeGen /RegisterClassInfo.cpp796View Report
Logic errorCalled C++ object pointer is nullclang /unittests /Basic /FileManagerTest.cpp883View Report
Logic errorCalled C++ object pointer is nullclang /unittests /Basic /FileManagerTest.cpp1163View Report
Logic errorCalled C++ object pointer is nulllib /Target /NVPTX /NVPTXISelLowering.cpp120017View Report
Logic errorCalled C++ object pointer is nullclang /unittests /Basic /FileManagerTest.cpp1653View Report
Logic errorCalled C++ object pointer is nulllib /MC /MCObjectStreamer.cpp3761View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /VTableBuilder.cpp137611View Report
Logic errorCalled C++ object pointer is nulllib /CodeGen /SelectionDAG /SelectionDAGBuilder.cpp62108View Report
Logic errorCalled C++ object pointer is nullclang /unittests /Basic /FileManagerTest.cpp1203View Report
Logic errorCalled C++ object pointer is nulllib /Target /ARM /Thumb2SizeReduction.cpp97211View Report
Logic errorCalled C++ object pointer is nullclang /lib /Lex /ModuleMap.cpp2496View Report
Logic errorCalled C++ object pointer is nulllib /Target /Hexagon /HexagonCFGOptimizer.cpp18322View Report
Logic errorCalled C++ object pointer is nulllib /Target /ARM /ARMFrameLowering.cpp155012View Report
Logic errorCalled C++ object pointer is nulllib /Target /X86 /X86ISelLowering.cpp551913View Report
Logic errorCalled C++ object pointer is nulllib /Transforms /Scalar /TailRecursionElimination.cpp43010View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /VTableBuilder.cpp108512View Report
Logic errorCalled C++ object pointer is nullclang /lib /CodeGen /CGDebugInfo.cpp127937View Report
Logic errorCalled C++ object pointer is nullclang /unittests /Basic /FileManagerTest.cpp1455View Report
Logic errorCalled C++ object pointer is nulllldb /source /Plugins /SymbolFile /DWARF /SymbolFileDWARF.cpp295445View Report
Logic errorCalled C++ object pointer is nulllldb /source /Plugins /SymbolFile /DWARF /DWARFDebugInfo.cpp57111View Report
Logic errorCalled C++ object pointer is nullclang /lib /StaticAnalyzer /Core /MemRegion.cpp126029View Report
Logic errorCalled C++ object pointer is nulllib /Transforms /InstCombine /InstCombineLoadStoreAlloca.cpp75411View Report
Logic errorCalled C++ object pointer is nullclang /unittests /Basic /FileManagerTest.cpp835View Report
Logic errorCalled C++ object pointer is nulllldb /source /Plugins /SymbolFile /DWARF /DWARFDebugInfo.cpp55810View Report
Logic errorCalled C++ object pointer is nulllib /Analysis /TargetTransformInfo.cpp29010View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /ASTDiagnostic.cpp153227View Report
Logic errorCalled C++ object pointer is nullclang /lib /CodeGen /CodeGenModule.cpp164112View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /ASTDiagnostic.cpp145029View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /VTableBuilder.cpp16169View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /DeclObjC.cpp128511View Report
Logic errorCalled C++ object pointer is nulllib /TableGen /Record.cpp8039View Report
Logic errorCalled C++ object pointer is nullclang /lib /CodeGen /CodeGenModule.cpp174212View Report
Logic errorCalled C++ object pointer is nulllib /Target /ARM /MCTargetDesc /ARMMachObjectWriter.cpp4096View Report
Logic errorCalled C++ object pointer is nullclang /unittests /Basic /FileManagerTest.cpp1695View Report
Logic errorCalled C++ object pointer is nulllib /CodeGen /MachineRegisterInfo.cpp13811View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /VTableBuilder.cpp273130View Report
Logic errorCalled C++ object pointer is nulllldb /source /Symbol /ClangASTType.cpp514024View Report
Logic errorCalled C++ object pointer is nulllldb /source /Symbol /ClangASTType.cpp509325View Report
Logic errorCalled C++ object pointer is nulllldb /source /Commands /CommandObjectSyntax.cpp7111View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /ExprConstant.cpp187113View Report
Logic errorCalled C++ object pointer is nulllldb /source /Plugins /Process /Utility /RegisterContextLLDB.cpp59733View Report
Logic errorCalled C++ object pointer is nullclang /unittests /Basic /FileManagerTest.cpp1413View Report
Logic errorCalled C++ object pointer is nullclang /lib /AST /VTableBuilder.cpp292533View Report
Logic errorCalled C++ object pointer is nullclang /lib /StaticAnalyzer /Core /MemRegion.cpp119128View Report
Logic errorCalled C++ object pointer is nulllib /CodeGen /CriticalAntiDepBreaker.cpp4325View Report
Logic errorCalled C++ object pointer is nulllldb /source /Plugins /SymbolFile /DWARF /SymbolFileDWARF.cpp707922View Report
Logic errorCalled C++ object pointer is nulllib /Transforms /Scalar /LoopStrengthReduce.cpp28014View Report
Logic errorCalled C++ object pointer is uninitializedlib /Target /Mips /AsmParser /MipsAsmParser.cpp11469View Report
Logic errorCalled function pointer is null (null dereference)unittests /ExecutionEngine /MCJIT /MCJITMultipleModuleTest.cpp483View Report
Logic errorCalled function pointer is null (null dereference)unittests /ExecutionEngine /MCJIT /MCJITObjectCacheTest.cpp1144View Report
Logic errorCalled function pointer is null (null dereference)unittests /ExecutionEngine /MCJIT /MCJITMultipleModuleTest.cpp603View Report
Dead storeDead assignmentclang /lib /Sema /SemaDeclCXX.cpp113851View Report
Dead storeDead assignmentclang /lib /Sema /SemaTemplate.cpp59311View Report
Dead storeDead assignmentlldb /source /API /SBTarget.cpp24651View Report
Dead storeDead assignmentclang /lib /Lex /ModuleMap.cpp19911View Report
Dead storeDead assignmentlib /Target /ARM64 /ARM64AddressTypePromotion.cpp3941View Report
Dead storeDead assignmentlib /Transforms /Vectorize /BBVectorize.cpp26061View Report
Dead storeDead assignmentlldb /source /Plugins /Process /gdb-remote /GDBRemoteCommunicationClient.cpp23541View Report
Dead storeDead assignmentlib /Target /ARM64 /Disassembler /ARM64Disassembler.cpp3161View Report
Dead storeDead assignmentlib /Target /ARM64 /Disassembler /ARM64Disassembler.cpp3231View Report
Dead storeDead assignmentbuild-llvm /tools /lldb /source /Interpreter /LLDBWrapPython.cpp45041View Report
Dead storeDead assignmentlib /Target /PowerPC /PPCCTRLoops.cpp2701View Report
Dead storeDead assignmentlib /Transforms /InstCombine /InstCombineSimplifyDemanded.cpp11301View Report
Dead storeDead assignmentlib /Bitcode /Reader /BitcodeReader.cpp10581View Report
Dead storeDead assignmentbuild-llvm /tools /lldb /source /Interpreter /LLDBWrapPython.cpp280171View Report
Dead storeDead assignmentlib /Target /ARM /ARMISelDAGToDAG.cpp13951View Report
Dead storeDead assignmentlldb /source /Interpreter /ScriptInterpreterPython.cpp10321View Report
Dead storeDead assignmentlib /Target /PowerPC /PPCCTRLoops.cpp2721View Report
Dead storeDead assignmentlldb /source /API /SBTarget.cpp24291View Report
Dead storeDead assignmentbuild-llvm /tools /lldb /source /Interpreter /LLDBWrapPython.cpp605861View Report
Dead storeDead assignmentlib /Target /X86 /X86MCInstLower.cpp6911View Report
Dead storeDead assignmentlib /Target /ARM64 /MCTargetDesc /ARM64MachObjectWriter.cpp1781View Report
Dead storeDead assignmentlldb /source /Plugins /Process /Linux /ProcessMonitor.cpp18981View Report
Dead storeDead assignmentlldb /source /Plugins /Process /gdb-remote /GDBRemoteCommunicationClient.cpp23561View Report
Dead storeDead assignmentlib /Target /AArch64 /AArch64ISelLowering.cpp34611View Report
Dead storeDead assignmentlib /Target /ARM /Thumb2SizeReduction.cpp3861View Report
Dead storeDead assignmentlib /Target /Mips /MCTargetDesc /MipsMCCodeEmitter.cpp1841View Report
Dead storeDead assignmentlldb /source /API /SBTarget.cpp25441View Report
Dead storeDead assignmentclang /lib /CodeGen /CGBuiltin.cpp48751View Report
Dead storeDead assignmentlib /Target /ARM64 /Disassembler /ARM64Disassembler.cpp2991View Report
Dead storeDead assignmentlib /Target /Hexagon /HexagonFixupHwLoops.cpp1171View Report
Dead storeDead assignmentlib /CodeGen /SelectionDAG /SelectionDAGBuilder.cpp14051View Report
Dead storeDead assignmentlib /Target /ARM64 /Disassembler /ARM64Disassembler.cpp3201View Report
Dead storeDead assignmentlldb /source /Expression /ClangExpressionDeclMap.cpp15251View Report
Dead storeDead assignmentlib /Target /ARM /ARMISelDAGToDAG.cpp33921View Report
Dead storeDead assignmentlldb /source /Symbol /LineTable.cpp5551View Report
Dead storeDead assignmentlib /Target /PowerPC /PPCCTRLoops.cpp2711View Report
Dead storeDead assignmentlib /CodeGen /AsmPrinter /DwarfUnit.cpp12611View Report
Dead storeDead assignmentunittests /ADT /SmallVectorTest.cpp4851View Report
Dead storeDead assignmentlib /Target /PowerPC /PPCCTRLoops.cpp2761View Report
Dead storeDead assignmentclang /utils /TableGen /NeonEmitter.cpp7651View Report
Dead storeDead assignmentlib /Target /ARM /ARMISelDAGToDAG.cpp13921View Report
Dead storeDead assignmentlldb /source /Target /ThreadPlanStepInRange.cpp1081View Report
Dead storeDead assignmentlib /Transforms /Vectorize /BBVectorize.cpp26051View Report
Dead storeDead assignmentlldb /source /Plugins /Process /gdb-remote /GDBRemoteCommunicationClient.cpp23581View Report
Dead storeDead assignmentbuild-llvm /tools /lldb /source /Interpreter /LLDBWrapPython.cpp280311View Report
Dead storeDead assignmentclang /lib /Lex /Lexer.cpp6941View Report
Dead storeDead assignmentlib /Target /ARM /Disassembler /ARMDisassembler.cpp29721View Report
Dead storeDead assignmentlldb /source /Plugins /Process /Linux /ProcessMonitor.cpp19281View Report
Dead storeDead assignmentlldb /source /Plugins /Process /Linux /ProcessMonitor.cpp19701View Report
Dead storeDead assignmentlldb /source /Plugins /ObjectFile /JIT /ObjectFileJIT.cpp3201View Report
Dead storeDead assignmentlldb /source /Plugins /Process /Linux /ProcessMonitor.cpp20121View Report
Dead storeDead assignmentlib /Target /X86 /X86ISelLowering.cpp85661View Report
Dead storeDead assignmentlib /Target /PowerPC /PPCCTRLoops.cpp2731View Report
Dead storeDead assignmentlib /Transforms /Vectorize /BBVectorize.cpp25881View Report
Dead storeDead assignmentlib /Target /ARM /Thumb1RegisterInfo.cpp2081View Report
Dead storeDead assignmentclang /lib /Sema /SemaTemplate.cpp59361View Report
Dead storeDead assignmentlib /Target /PowerPC /PPCCTRLoops.cpp2741View Report
Dead storeDead assignmentlib /Target /PowerPC /PPCCTRLoops.cpp2751View Report
Dead storeDead incrementlldb /tools /lldb-platform /lldb-platform.cpp2351View Report
Dead storeDead incrementlib /Target /NVPTX /NVPTXISelLowering.cpp16891View Report
Dead storeDead incrementlib /Support /GraphWriter.cpp1031View Report
Dead storeDead incrementlldb /source /Plugins /Process /POSIX /RegisterContextPOSIXProcessMonitor_mips64.cpp1991View Report
Dead storeDead incrementlib /Target /NVPTX /NVPTXISelLowering.cpp16601View Report
Dead storeDead incrementlldb /source /Target /Process.cpp27861View Report
Dead storeDead incrementlib /Target /ARM /Disassembler /ARMDisassembler.cpp29761View Report
Dead storeDead incrementlldb /source /Plugins /Process /POSIX /RegisterContextPOSIXProcessMonitor_mips64.cpp2181View Report
Dead storeDead incrementlldb /tools /lldb-platform /lldb-platform.cpp2341View Report
Dead storeDead initializationlib /CodeGen /AsmPrinter /AsmPrinterDwarf.cpp2411View Report
Dead storeDead initializationclang /lib /CodeGen /CGBuiltin.cpp28761View Report
Dead storeDead initializationlib /Analysis /ScalarEvolution.cpp66781View Report
Dead storeDead initializationlib /Target /R600 /AMDILCFGStructurizer.cpp17351View Report
Dead storeDead initializationclang /lib /CodeGen /CGBuiltin.cpp28751View Report
Logic errorDereference of null pointerlib /Transforms /Scalar /LoopUnswitch.cpp3975View Report
Logic errorDereference of null pointerclang /lib /Sema /SemaTemplate.cpp27999View Report
Logic errorDereference of null pointerclang /lib /ARCMigrate /ObjCMT.cpp58625View Report
Logic errorDereference of null pointerlib /CodeGen /MachineInstr.cpp7007View Report
Logic errorDereference of null pointerclang /unittests /AST /ASTVectorTest.cpp232View Report
Logic errorDereference of null pointerclang /lib /Sema /SemaAccess.cpp124630View Report
Logic errorDereference of null pointerlib /Support /CommandLine.cpp34029View Report
Logic errorDereference of null pointerlib /LTO /LTOModule.cpp6542View Report
Logic errorDereference of null pointerlib /Support /regcomp.c15139View Report
Logic errorDereference of null pointerlldb /source /Expression /ClangExpressionDeclMap.cpp139321View Report
Logic errorDereference of null pointerlib /Transforms /Scalar /LoopStrengthReduce.cpp25906View Report
Logic errorDereference of null pointerclang /lib /AST /CommentLexer.cpp8355View Report
Logic errorDereference of null pointerlib /Target /ARM64 /MCTargetDesc /ARM64ELFStreamer.cpp1324View Report
Logic errorDereference of null pointerlib /CodeGen /ExecutionDepsFix.cpp6466View Report
Logic errorDereference of null pointerlib /Transforms /Scalar /LoopStrengthReduce.cpp28004View Report
Logic errorDereference of null pointerlldb /source /Target /TargetList.cpp2499View Report
Logic errorDereference of null pointerlib /CodeGen /ExecutionDepsFix.cpp70615View Report
Logic errorDereference of null pointerclang /tools /libclang /CIndex.cpp66673View Report
Logic errorDivision by zerolib /CodeGen /SelectionDAG /SelectionDAGBuilder.cpp5659View Report
Logic errorDivision by zerolib /Support /raw_ostream.cpp31415View Report
Logic errorDivision by zerolib /Target /Hexagon /HexagonHardwareLoops.cpp65912View Report
Logic errorGarbage return valuelib /Target /R600 /R600InstrInfo.cpp43219View Report
Logic errorGarbage return valuelib /Target /R600 /R600InstrInfo.cpp42819View Report
Logic errorGarbage return valuelib /Target /R600 /R600InstrInfo.cpp42019View Report
Logic errorGarbage return valuelib /Target /R600 /R600InstrInfo.cpp42419View Report
Memory ErrorMemory leakbuild-llvm /tools /lldb /source /Interpreter /LLDBWrapPython.cpp4001112View Report
Memory ErrorMemory leakclang /tools /c-index-test /c-index-test.c158928View Report
Memory ErrorMemory leakbuild-llvm /tools /lldb /source /Interpreter /LLDBWrapPython.cpp326139View Report
Memory ErrorMemory leakbuild-llvm /tools /lldb /source /Interpreter /LLDBWrapPython.cpp401529View Report
Memory ErrorMemory leakclang /tools /c-index-test /c-index-test.c24377View Report
Memory ErrorMemory leakunittests /IR /WaymarkTest.cpp472View Report
Memory ErrorMemory leakbuild-llvm /tools /lldb /source /Interpreter /LLDBWrapPython.cpp327479View Report
Memory ErrorMemory leakbuild-llvm /tools /lldb /source /Interpreter /LLDBWrapPython.cpp316719View Report
SecurityPotential insecure temporary file in call 'mktemp'lldb /source /Expression /ClangExpressionParser.cpp3321View Report
SecurityPotential insecure temporary file in call 'mktemp'lldb /source /Plugins /Process /gdb-remote /GDBRemoteCommunication.cpp7031View Report
SecurityPotential insecure temporary file in call 'mktemp'lldb /source /Host /common /Host.cpp15871View Report
Logic errorResult of operation is garbage or undefinedlib /Target /ARM64 /ARM64ISelDAGToDAG.cpp139713View Report
Logic errorResult of operation is garbage or undefinedlib /Target /AArch64 /AArch64BranchFixupPass.cpp3819View Report
Logic errorResult of operation is garbage or undefinedlib /MC /MCAsmStreamer.cpp74314View Report
Logic errorResult of operation is garbage or undefinedlib /Transforms /Scalar /SampleProfile.cpp51920View Report
Logic errorResult of operation is garbage or undefinedclang /lib /Serialization /ASTReader.cpp47098View Report
Logic errorResult of operation is garbage or undefinedlib /Object /ELFObjectFile.cpp241View Report
Logic errorResult of operation is garbage or undefinedlib /Target /Mips /MipsAnalyzeImmediate.cpp4415View Report
Logic errorResult of operation is garbage or undefinedlib /Target /ARM64 /ARM64ISelDAGToDAG.cpp6037View Report
Logic errorResult of operation is garbage or undefinedlib /CodeGen /ExecutionDepsFix.cpp7512View Report
Logic errorResult of operation is garbage or undefinedlib /Target /AArch64 /AArch64BranchFixupPass.cpp3818View Report
Logic errorResult of operation is garbage or undefinedlib /CodeGen /AsmPrinter /AsmPrinter.cpp14815View Report
Logic errorResult of operation is garbage or undefinedlib /Target /ARM /ARMISelLowering.cpp81364View Report
Logic errorResult of operation is garbage or undefinedlib /CodeGen /InlineSpiller.cpp2537View Report
Logic errorResult of operation is garbage or undefinedlib /Target /SystemZ /SystemZInstrInfo.cpp11695View Report
Logic errorResult of operation is garbage or undefinedlib /Transforms /InstCombine /InstCombineAndOrXor.cpp142417View Report
Logic errorResult of operation is garbage or undefinedlib /Target /ARM /ARMConstantIslandPass.cpp6857View Report
Logic errorResult of operation is garbage or undefinedlib /Target /ARM64 /ARM64ISelDAGToDAG.cpp6425View Report
Logic errorResult of operation is garbage or undefinedlib /CodeGen /AsmPrinter /AsmPrinter.cpp14795View Report
Logic errorReturning null referencelib /Analysis /DominanceFrontier.cpp10934View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)bindings /ocaml /executionengine /executionengine_ocaml.c2936View Report
Logic errorUninitialized argument valuelib /Object /YAML.cpp497View Report
Logic errorUninitialized argument valuelib /Target /Mips /MCTargetDesc /MipsNaClELFStreamer.cpp14710View Report
Logic errorUninitialized argument valuelib /ExecutionEngine /Interpreter /ExternalFunctions.cpp4532View Report
Logic errorUninitialized argument valueclang /lib /Serialization /ASTReaderStmt.cpp16996View Report
Logic errorUninitialized argument valuelib /CodeGen /SelectionDAG /SelectionDAGISel.cpp25817View Report
Logic errorUninitialized argument valuelib /ExecutionEngine /Interpreter /ExternalFunctions.cpp4372View Report
Logic errorUninitialized argument valuelib /Target /R600 /R600InstrInfo.cpp5837View Report
Memory ErrorUse-after-freelldb /source /Host /common /Host.cpp26226View Report
Memory ErrorUse-after-freelldb /source /Host /common /Host.cpp27028View Report
Memory ErrorUse-after-freelldb /source /Host /common /Host.cpp20118View Report
Memory ErrorUse-after-freelldb /source /Host /common /Host.cpp28021View Report