git - scan-build results

User:lars
Working Directory:/Users/lars/Code/git
Command Line:make
Clang Version:clang version 3.9.1 (tags/RELEASE_391/final)
Date:Sat Feb 25 22:10:03 2017

Bug Summary

Bug TypeQuantityDisplay?
All Bugs72
Dead store
Dead assignment21
Dead increment4
Dead initialization3
Logic error
Assigned value is garbage or undefined6
Dereference of null pointer26
Division by zero1
Uninitialized argument value1
Unix API6
Memory Error
Use-after-free2
Unix API
Allocator sizeof operand mismatch1
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 mismatcht/helper/test-hashmap.cperf_hashmap851View Report
Logic errorAssigned value is garbage or undefinedfast-import.cparse_get_mark299567View Report
Logic errorAssigned value is garbage or undefinedmerge-recursive.cmerge_recursive20084View Report
Logic errorAssigned value is garbage or undefinedcompat/regex/regexec.cbuild_trtable348120View Report
Logic errorAssigned value is garbage or undefinedbuiltin/rev-list.ccmd_rev_list39142View Report
Logic errorAssigned value is garbage or undefinedread-cache.cce_write_entry189616View Report
Logic errorAssigned value is garbage or undefinedfast-import.cparse_cat_blob301268View Report
Dead storeDead assignmentbuiltin/add.cedit_patch2141View Report
Dead storeDead assignmentbuiltin/commit.ccmd_status13671View Report
Dead storeDead assignmentfast-import.cvalidate_raw_date20581View Report
Dead storeDead assignmentbuiltin/update-index.ccmd_update_index10631View Report
Dead storeDead assignmentbuiltin/reset.ccmd_reset2941View Report
Dead storeDead assignmentbuiltin/help.ccmd_help4561View Report
Dead storeDead assignmentcompat/regex/regexec.cre_search_internal8551View Report
Dead storeDead assignmentbuiltin/mktree.ccmd_mktree1581View Report
Dead storeDead assignmentcredential-cache--daemon.ccmd_main2771View Report
Dead storeDead assignmentcompat/regex/regex_internal.cre_node_set_insert13261View Report
Dead storeDead assignmentbuiltin/rev-parse.ccmd_parseopt5001View Report
Dead storeDead assignmentbuiltin/write-tree.ccmd_write_tree371View Report
Dead storeDead assignmentbuiltin/notes.ccmd_notes10191View Report
Dead storeDead assignmentbuiltin/ls-files.ccmd_ls_files5761View Report
Dead storeDead assignmentbuiltin/show-ref.ccmd_show_ref1831View Report
Dead storeDead assignmentbuiltin/clean.ccmd_clean8891View Report
Dead storeDead assignmentbuiltin/prune-packed.ccmd_prune_packed621View Report
Dead storeDead assignmentbuiltin/repack.ccmd_repack2021View Report
Dead storeDead assignmentarchive.cwrite_archive5181View Report
Dead storeDead assignmentbuiltin/bisect--helper.ccmd_bisect__helper231View Report
Dead storeDead assignmentbuiltin/merge.cmerge_trivial7981View Report
Dead storeDead incrementref-filter.cmatch_name_as_path12911View Report
Dead storeDead incrementwrapper.cgit_mkstemps_mode5051View Report
Dead storeDead incrementdiffcore-rename.cdiffcore_rename5831View Report
Dead storeDead incrementfsck.cfsck_ident7051View Report
Dead storeDead initializationfast-import.cparse_cat_blob30121View Report
Dead storeDead initializationbuiltin/receive-pack.ccheck_nonce4981View Report
Dead storeDead initializationfast-import.cparse_get_mark29951View Report
Logic errorDereference of null pointerunpack-trees.cverify_absent15989View Report
Logic errorDereference of null pointerrefs/iterator.cref_iterator_advance1314View Report
Logic errorDereference of null pointerargv-array.cargv_array_push_nodup204View Report
Logic errorDereference of null pointernotes.ctree_write_stack_finish_subtree6737View Report
Logic errorDereference of null pointerparse-options.cparse_options_step4658View Report
Logic errorDereference of null pointerunpack-trees.cverify_absent_1156812View Report
Logic errorDereference of null pointercompat/regex/regcomp.ccreate_initial_state100328View Report
Logic errorDereference of null pointercombine-diff.ccoalesce_lines23311View Report
Logic errorDereference of null pointerrevision.cadd_parents_to_list76830View Report
Logic errorDereference of null pointerkwset.ckwsprep4623View Report
Logic errorDereference of null pointercommit.cparse_signed_commit115716View Report
Logic errorDereference of null pointerhttp-walker.cfetch5614View Report
Logic errorDereference of null pointerconvert.cgather_stats4810View Report
Logic errorDereference of null pointerbuiltin/index-pack.cshow_pack_info159829View Report
Logic errorDereference of null pointerrevision.climit_list104621View Report
Logic errorDereference of null pointercombine-diff.ccoalesce_lines24113View Report
Logic errorDereference of null pointerconvert.ccrlf_to_git32710View Report
Logic errorDereference of null pointercompat/obstack.c_obstack_begin_12238View Report
Logic errorDereference of null pointerxdiff-interface.cxdiff_set_find_func26711View Report
Logic errorDereference of null pointercompat/obstack.c_obstack_newchunk2585View Report
Logic errorDereference of null pointerrefs/iterator.cmerge_ref_iterator_advance15913View Report
Logic errorDereference of null pointerconvert.ccrlf_to_git33314View Report
Logic errorDereference of null pointerrun-command.ccleanup_children514View Report
Logic errorDereference of null pointercompat/obstack.c_obstack_begin1758View Report
Logic errorDereference of null pointerbuiltin/pack-objects.ccheck_pbase_path130311View Report
Logic errorDereference of null pointerrevision.climit_list104220View Report
Logic errorDivision by zerodiff.cscale_linear152129View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)xdiff/xmerge.cxdl_do_merge62024View Report
Logic errorUninitialized argument valuefast-import.cdo_change_note_fanout227737View Report
Logic errorUnix APIpretty.csetup_commit_formats10410View Report
Logic errorUnix APIbuiltin/pull.cget_tracking_branch63428View Report
Logic errorUnix APIremote.calloc_ref_with_prefix92828View Report
Logic errorUnix APImerge-recursive.cmerge_3way90721View Report
Logic errorUnix APIline-log.crange_set_copy4610View Report
Logic errorUnix APIbuiltin/pack-objects.ccheck_pbase_path13009View Report
Memory ErrorUse-after-freecombine-diff.ccoalesce_lines28439View Report
Memory ErrorUse-after-freediffcore-break.cdiffcore_merge_broken29426View Report