clamav-0.98.5 - scan-build results

User:srtate@scode
Working Directory:/home/srtate/clamav-0.98.5
Command Line:make
Clang Version:Ubuntu clang version 3.6.1-svn232753-1~exp1 (branches/release_36) (based on LLVM 3.6.1)
Date:Mon Mar 23 21:12:07 2015

Bug Summary

Bug TypeQuantityDisplay?
All Bugs174
API
Argument with 'nonnull' attribute passed null5
Dead store
Dead assignment100
Dead increment5
Dead initialization8
Logic error
Array subscript is undefined2
Assigned value is garbage or undefined6
Called C++ object pointer is null8
Dereference of null pointer14
Dereference of undefined pointer value1
Division by zero1
Result of operation is garbage or undefined10
Uninitialized argument value1
Memory Error
Memory leak6
Unix API
Allocator sizeof operand mismatch6
Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)1

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Unix APIAllocator sizeof operand mismatchlibclamav /crypto.ccl_validate_certificate_chain_ts_dir8301View Report
Unix APIAllocator sizeof operand mismatchlibclamav /crypto.ccl_validate_certificate_chain_ts_dir7981View Report
Unix APIAllocator sizeof operand mismatchclamscan /manager.cscanfile3351View Report
Unix APIAllocator sizeof operand mismatchlibclamav /stats.cclamav_stats_add_sample2101View Report
Unix APIAllocator sizeof operand mismatchlibclamav /stats.cclamav_stats_add_sample2231View Report
Unix APIAllocator sizeof operand mismatchlibclamav /stats.cclamav_stats_add_sample2431View Report
APIArgument with 'nonnull' attribute passed nulllibltdl /ltdl.cforeach_dirinpath7118View Report
APIArgument with 'nonnull' attribute passed nulllibclamav /readdb.ccli_loadldb143313View Report
APIArgument with 'nonnull' attribute passed nullclamdtop /clamdtop.cparse_stats117541View Report
APIArgument with 'nonnull' attribute passed nulllibclamav /mbox.cparseEmailBody140370View Report
APIArgument with 'nonnull' attribute passed nulllibltdl /ltdl.clt_argz_insertdir18137View Report
Logic errorArray subscript is undefinedlibclamav /explode.cbs5312View Report
Logic errorArray subscript is undefinedlibclamav /fmap.cfmap_aging30112View Report
Logic errorAssigned value is garbage or undefinedlibclamav /c++ /llvm /lib /CodeGen /RegAllocLinearScan.cppfindIntervalsToSpill86016View Report
Logic errorAssigned value is garbage or undefinedlibclamunrar /unrarppm.cppm_decode_symbol28976View Report
Logic errorAssigned value is garbage or undefinedlibclamav /disasm.cdisasm_x86157020View Report
Logic errorAssigned value is garbage or undefinedlibclamav /phishcheck.curl_get_domain1168114View Report
Logic errorAssigned value is garbage or undefinedlibclamav /7z /7zDec.cSzFolder_Decode237125View Report
Logic errorAssigned value is garbage or undefinedlibclamav /c++ /llvm /lib /CodeGen /RegAllocLinearScan.cppfindIntervalsToSpill87517View Report
Logic errorCalled C++ object pointer is nulllibclamav /c++ /llvm /lib /CodeGen /TwoAddressInstructionPass.cppSink3AddrInstruction25912View Report
Logic errorCalled C++ object pointer is nulllibclamav /c++ /llvm /lib /CodeGen /RegAllocLinearScan.cppassignRegOrStackSlotAtInterval140036View Report
Logic errorCalled C++ object pointer is nulllibclamav /c++ /llvm /lib /CodeGen /PeepholeOptimizer.cppOptimizeExtInstr17724View Report
Logic errorCalled C++ object pointer is nulllibclamav /c++ /llvm /lib /CodeGen /VirtRegRewriter.cppTransferDeadness16717View Report
Logic errorCalled C++ object pointer is nulllibclamav /c++ /bytecode2llvm.cppGEPOperand12345View Report
Logic errorCalled C++ object pointer is nulllibclamav /c++ /llvm /lib /Target /X86 /X86ISelLowering.cppEltsFromConsecutiveLoads41459View Report
Logic errorCalled C++ object pointer is nulllibclamav /c++ /llvm /lib /Analysis /DebugInfo.cppfindDbgDeclare15065View Report
Logic errorCalled C++ object pointer is nulllibclamav /c++ /llvm /lib /CodeGen /TwoAddressInstructionPass.cppCoalesceExtSubRegs135013View Report
Dead storeDead assignmentlibclamav /scanners.ccli_map_scan32751View Report
Dead storeDead assignmentlibclamav /apm.capm_prtn_intxn2971View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Target /X86 /X86RegisterInfo.cppgetFrameIndexOffset5161View Report
Dead storeDead assignmentlibclamav /regex /engine.cldissect4381View Report
Dead storeDead assignmentlibclamav /pe.ccli_scanpe17151View Report
Dead storeDead assignmentlibclamav /tomsfastmath /bin /fp_radix_size.cfp_radix_size411View Report
Dead storeDead assignmentlibclamav /png.ccheck_ascii_float2481View Report
Dead storeDead assignmentlibclamav /bytecode.cparseLSig6651View Report
Dead storeDead assignmentlibclamav /phishcheck.ccli_url_canon12741View Report
Dead storeDead assignmentlibclamav /others_common.ccli_ftw_dir7371View Report
Dead storeDead assignmentlibclamav /filetypes.ccli_filetype22421View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Target /X86 /X86RegisterInfo.cppprocessFunctionBeforeCalleeSavedScan7151View Report
Dead storeDead assignmentlibclamav /hfsplus.chfsplus_walk_catalog6231View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Analysis /ScalarEvolution.cppisKnownPredicateWithRanges52301View Report
Dead storeDead assignmentclamd /thrmgr.cthrmgr_printstats2101View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /CodeGen /SelectionDAG /SelectionDAGBuilder.cppvisitSwitch22371View Report
Dead storeDead assignmentlibclamav /regex /engine.csdissect4031View Report
Dead storeDead assignmentlibclamav /regex /engine.cldissect3651View Report
Dead storeDead assignmentlibclamav /chmunpack.cread_control_entries2781View Report
Dead storeDead assignmentlibclamunrar_iface /unrar_iface.clibclamunrar_iface_LTX_unrar_open3531View Report
Dead storeDead assignmentsigtool /sigtool.cmatchsig20271View Report
Dead storeDead assignmentlibclamav /hfsplus.chfsplus_walk_catalog5551View Report
Dead storeDead assignmentlibclamav /hfsplus.chfsplus_fetch_node4761View Report
Dead storeDead assignmentsigtool /sigtool.cdecodehex24251View Report
Dead storeDead assignmentlibclamav /htmlnorm.ccli_html_normalise15851View Report
Dead storeDead assignmentsigtool /sigtool.cdecodehex24131View Report
Dead storeDead assignmentlibclamav /unarj.carj_read_main_header8181View Report
Dead storeDead assignmentlibclamav /petite.cpetite_inflate2x_1to94601View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /CodeGen /SelectionDAG /SelectionDAG.cppgetMemsetStores35101View Report
Dead storeDead assignmentlibclamav /7z /XzIn.cXz_ReadIndex2981View Report
Dead storeDead assignmentlibclamav /htmlnorm.ccli_html_normalise10891View Report
Dead storeDead assignmentlibclamav /upack.cunupack3401View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Analysis /ScalarEvolution.cppisKnownPredicateWithRanges52421View Report
Dead storeDead assignmentlibclamav /htmlnorm.ccli_readchunk2671View Report
Dead storeDead assignmentlibclamav /regex /engine.cldissect4031View Report
Dead storeDead assignmentlibclamav /mbox.cparseEmailBody12381View Report
Dead storeDead assignmentlibclamav /ishield.cis_dump_and_scan4791View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Target /X86 /X86FastISel.cppX86SelectCall15901View Report
Dead storeDead assignmentlibclamav /scanners.ccli_scanrar3441View Report
Dead storeDead assignmentlibclamav /entconv.cin_iconv_u167301View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /CodeGen /LiveVariables.cppremoveVirtualRegistersKilled6791View Report
Dead storeDead assignmentlibclamav /regex_list.cregex_list_match2101View Report
Dead storeDead assignmentlibclamav /pdf.ccli_pdf25921View Report
Dead storeDead assignmentlibclamav /png.ccli_parsepng7421View Report
Dead storeDead assignmentlibclamav /pe.ccli_checkfp_pe33811View Report
Dead storeDead assignmentlibclamav /mbox.cparseEmailBody11951View Report
Dead storeDead assignmentlibclamav /fmap.cfmap_readpage3601View Report
Dead storeDead assignmentlibclamav /regex /engine.csdissect3651View Report
Dead storeDead assignmentsigtool /sigtool.cdecodehex23321View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /CodeGen /RegisterCoalescer.cppsetRegisters951View Report
Dead storeDead assignmentlibclamav /bytecode.cparseLSig6641View Report
Dead storeDead assignmentlibclamav /packlibs.ccli_unfsg691View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Analysis /ScalarEvolution.cppGetAddressedElementFromGlobal41571View Report
Dead storeDead assignmentlibclamav /regex_list.cadd_pattern_suffix6511View Report
Dead storeDead assignmentlibclamav /bytecode.ccli_bytecode_load15991View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Analysis /ScalarEvolution.cppisKnownPredicateWithRanges52541View Report
Dead storeDead assignmentlibclamav /bytecode_vm.ccli_vm_execute11211View Report
Dead storeDead assignmentlibclamav /mbox.cparseEmailBody11701View Report
Dead storeDead assignmentlibclamav /message.cmessageDedup22191View Report
Dead storeDead assignmentlibclamav /scanners.ccli_scanscript13531View Report
Dead storeDead assignmentlibclamav /others_common.ccli_ftw_dir6451View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /CodeGen /RegisterCoalescer.cppsetRegisters1201View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Analysis /ScalarEvolution.cppGetAddressedElementFromGlobal41541View Report
Dead storeDead assignmentlibclamav /regex /engine.csdissect4381View Report
Dead storeDead assignmentlibclamav /message.cmessageToText16061View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /CodeGen /SelectionDAG /SelectionDAGBuilder.cppEmitBranchForMergedCondition12491View Report
Dead storeDead assignmentlibclamav /mbr.cmbr_extended_prtn_intxn5921View Report
Dead storeDead assignmentlibclamav /mew.cunmew118811View Report
Dead storeDead assignmentlibclamav /message.cdecode20411View Report
Dead storeDead assignmentlibclamav /htmlnorm.ccli_html_normalise15761View Report
Dead storeDead assignmentlibclamav /nsis /bzlib.cBZ2_decompress5141View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Target /X86 /X86FastISel.cppX86SelectCall15821View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Analysis /ScalarEvolution.cppisKnownPredicateWithRanges52661View Report
Dead storeDead assignmentlibclamav /gpt.cgpt_prtn_intxn6691View Report
Dead storeDead assignmentlibclamav /packlibs.cunmew1941View Report
Dead storeDead assignmentlibclamav /unsp.cvery_real_unpack3451View Report
Dead storeDead assignmentlibclamav /pe.ccli_peheader31081View Report
Dead storeDead assignmentlibclamav /openioc.copenioc_parse2281View Report
Dead storeDead assignmentlibclamav /mew.cmew_lzma6421View Report
Dead storeDead assignmentlibclamav /aspack.cbuild_decrypt_array1491View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /CodeGen /MachineBasicBlock.cppprint1981View Report
Dead storeDead assignmentlibclamav /others_common.ccli_ftw_dir6451View Report
Dead storeDead assignmentlibclamav /pe.ccli_scanpe20071View Report
Dead storeDead assignmentlibclamav /mbr.cmbr_primary_prtn_intxn5091View Report
Dead storeDead assignmentlibclamav /ishield.ccli_scanishield_msi3041View Report
Dead storeDead assignmentlibclamav /readdb.cload_oneldb13841View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /System /Mutex.cppMutexImpl801View Report
Dead storeDead assignmentlibclamav /others_common.ccli_ftw_dir7371View Report
Dead storeDead assignmentlibclamav /upack.cunupack3311View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Transforms /Scalar /LoopStrengthReduce.cppprint3661View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /Transforms /Utils /AddrModeMatcher.cppprint511View Report
Dead storeDead assignmentlibclamav /hfsplus.chfsplus_walk_catalog6051View Report
Dead storeDead assignmentlibclamav /c++ /llvm /lib /CodeGen /ScheduleDAGInstrs.cppBuildSchedGraph4511View Report
Dead storeDead assignmentlibclamav /jsparse /js-norm.ccli_js_process_buffer9691View Report
Dead storeDead assignmentlibclamav /mew.clzma_4862481181View Report
Dead storeDead assignmentlibclamav /bytecode.ccli_bytecode_prepare226781View Report
Dead storeDead assignmentlibclamav /xar.cxar_scan_subdocuments3101View Report
Dead storeDead assignmentlibclamav /mbr.cmbr_primary_prtn_intxn5311View Report
Dead storeDead assignmentlibclamav /upx.cupx_inflate2d3891View Report
Dead storeDead assignmentlibclamav /mbox.cparseEmailHeaders9491View Report
Dead storeDead incrementlibclamav /sis.creal_scansis3071View Report
Dead storeDead incrementlibclamav /pe.ccli_peheader29551View Report
Dead storeDead incrementlibclamav /apm.capm_prtn_intxn3151View Report
Dead storeDead incrementlibclamav /jpeg.ccli_parsegif2951View Report
Dead storeDead incrementlibclamav /pe.ccli_scanpe11851View Report
Dead storeDead initializationlibclamav /stats.cclamav_stats_get_hostid5741View Report
Dead storeDead initializationlibclamav /c++ /llvm /lib /CodeGen /SelectionDAG /SelectionDAGISel.cppFinishBasicBlock9541View Report
Dead storeDead initializationlibclamav /c++ /llvm /lib /Transforms /Scalar /GVN.cppgetHashValue2001View Report
Dead storeDead initializationlibclamav /crtmgr.ccrtmgr_verify_crt2791View Report
Dead storeDead initializationlibclamav /unsp.cvery_real_unpack2201View Report
Dead storeDead initializationclamd /others.cfds_poll_recv5151View Report
Dead storeDead initializationlibclamav /nsis /infblock.chuft_build2451View Report
Dead storeDead initializationlibclamav /c++ /llvm /lib /Analysis /ProfileInfo.cpprepair9281View Report
Logic errorDereference of null pointerlibclamav /message.ccompare257313View Report
Logic errorDereference of null pointerlibclamav /ole2_extract.cole2_walk_property_tree69556View Report
Logic errorDereference of null pointerlibclamav /ole2_extract.cole2_walk_property_tree64557View Report
Logic errorDereference of null pointerclamdtop /clamdtop.csetup_connections133513View Report
Logic errorDereference of null pointerlibclamav /c++ /llvm /lib /Transforms /Scalar /LoopStrengthReduce.cppNarrowSearchSpaceByPickingWinnerRegs310221View Report
Logic errorDereference of null pointerlibltdl /ltdl.ccanonicalize_path5944View Report
Logic errorDereference of null pointerlibclamav /c++ /llvm /lib /Support /CommandLine.cppProvideOption26910View Report
Logic errorDereference of null pointerlibclamav /c++ /llvm /lib /Support /CommandLine.cppProvideOption2306View Report
Logic errorDereference of null pointerlibclamav /ole2_extract.cole2_walk_property_tree68053View Report
Logic errorDereference of null pointerlibclamav /c++ /llvm /lib /Target /X86 /SSEDomainFix.cppMerge26418View Report
Logic errorDereference of null pointerlibclamav /c++ /llvm /lib /Target /X86 /SSEDomainFix.cppvisitSoftInstr41015View Report
Logic errorDereference of null pointerlibclamav /xar.cxar_hash_init3315View Report
Logic errorDereference of null pointerlibltdl /ltdl.cloader_init2015View Report
Logic errorDereference of null pointerlibclamav /ole2_extract.cole2_walk_property_tree75255View Report
Logic errorDereference of undefined pointer valuelibclamunrar /unrarppm.cppm_decode_symbol29086View Report
Logic errorDivision by zerolibclamav /c++ /llvm /lib /CodeGen /SelectionDAG /SelectionDAGBuilder.cppgetCopyToPartsVector4809View Report
Memory ErrorMemory leaklibclamav /c++ /llvm /lib /MC /MCELFStreamer.cppEmitCodeAlignment3114View Report
Memory ErrorMemory leaklibclamav /c++ /llvm /lib /MC /WinCOFFStreamer.cppEmitCodeAlignment2994View Report
Memory ErrorMemory leaklibclamav /c++ /llvm /lib /MC /MCMachOStreamer.cppEmitCodeAlignment3624View Report
Memory ErrorMemory leakclamscan /manager.cscanfile3459View Report
Memory ErrorMemory leaksigtool /sigtool.cdumpcerts287141View Report
Memory ErrorMemory leaklibclamav /c++ /llvm /lib /MC /ELFObjectWriter.cppWriteRelocation7117View Report
Logic errorResult of operation is garbage or undefinedlibclamav /c++ /llvm /lib /CodeGen /RegAllocLinearScan.cppfindIntervalsToSpill88511View Report
Logic errorResult of operation is garbage or undefinedlibclamav /c++ /llvm /lib /CodeGen /PreAllocSplitting.cppgetNumberOfNonSpills11536View Report
Logic errorResult of operation is garbage or undefinedlibclamav /explode.cbs5317View Report
Logic errorResult of operation is garbage or undefinedlibclamav /explode.cunpack_tree10817View Report
Logic errorResult of operation is garbage or undefinedlibclamav /explode.cbs5316View Report
Logic errorResult of operation is garbage or undefinedlibclamav /c++ /llvm /lib /CodeGen /VirtRegRewriter.cppCommuteToFoldReload14908View Report
Logic errorResult of operation is garbage or undefinedlibclamav /rtf.crtf_object_process40822View Report
Logic errorResult of operation is garbage or undefinedlibclamav /c++ /llvm /lib /CodeGen /PreAllocSplitting.cppremoveDeadSpills123727View Report
Logic errorResult of operation is garbage or undefinedlibclamav /c++ /llvm /lib /Support /APFloat.cpppowerOf54976View Report
Logic errorResult of operation is garbage or undefinedlibclamav /c++ /llvm /lib /Target /X86 /SSEDomainFix.cpphasDomain6810View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)clamdtop /clamdtop.cresize2059View Report
Logic errorUninitialized argument valuelibclamav /7z /Ppmd7.cCreateSuccessors4116View Report