foma clang-analyzer scan-build results

User:root@scan-build
Working Directory:/tmp/build/foma/foma-0.10.0+g279~a2d32b38
Command Line:make -j12 V=1 VERBOSE=1
Clang Version:Debian clang version 16.0.6 (27+b1)
Date:Wed Sep 11 15:59:45 2024

Bug Summary

Bug TypeQuantityDisplay?
All Bugs47
Logic error
Assigned value is garbage or undefined2
Branch condition evaluates to a garbage value3
Dereference of null pointer11
Dereference of undefined pointer value1
Result of operation is garbage or undefined4
Uninitialized argument value1
Memory error
Memory leak12
Use of zero allocated1
Unix API
Allocator sizeof operand mismatch6
Unused code
Dead assignment4
Dead increment1
Dead nested assignment1

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Unix APIAllocator sizeof operand mismatchdynarray.cfsm_read_init5161View Report
Unix APIAllocator sizeof operand mismatchflags.cflag_twosided5001View Report
Unix APIAllocator sizeof operand mismatchstructures.cfsm_extract_nonidentity7451View Report
Unix APIAllocator sizeof operand mismatchlexcread.clexc_add_network2781View Report
Unix APIAllocator sizeof operand mismatchstructures.cfsm_isidentity5161View Report
Unix APIAllocator sizeof operand mismatchiface.cprint_dot16521View Report
Logic errorAssigned value is garbage or undefinedstructures.cfsm_extract_nonidentity74719View Report
Logic errorAssigned value is garbage or undefinedstructures.cfsm_isidentity51820View Report
Logic errorBranch condition evaluates to a garbage valueio.cfoma_write_prolog17611View Report
Logic errorBranch condition evaluates to a garbage valueiface.cprint_dot164511View Report
Logic errorBranch condition evaluates to a garbage valuecoaccessible.cfsm_coaccessible8311View Report
Unused codeDead assignmentconstructions.cfsm_unflatten19561View Report
Unused codeDead assignmentconstructions.cfsm_compose6941View Report
Unused codeDead assignmentconstructions.cfsm_unflatten19411View Report
Unused codeDead assignmentrewrite.cfsm_rewrite1341View Report
Unused codeDead incrementapply.capply_index4721View Report
Unused codeDead nested assignmentio.cexplode_line6071View Report
Logic errorDereference of null pointerconstructions.cfsm_compose67723View Report
Logic errorDereference of null pointerlexcread.clexc_merge_states98419View Report
Logic errorDereference of null pointerapply.capply_check_flag13874View Report
Logic errorDereference of null pointerapply.capply_stack_pop33825View Report
Logic errorDereference of null pointerdefine.cadd_defined_function1143View Report
Logic errorDereference of null pointerapply.capply_index48939View Report
Logic errorDereference of null pointerdefine.cadd_defined1497View Report
Logic errorDereference of null pointerconstructions.cfsm_compose79134View Report
Logic errorDereference of null pointerlexcread.clexc_number_states81317View Report
Logic errorDereference of null pointerconstructions.cfsm_compose74834View Report
Logic errorDereference of null pointerminimize.cfsm_minimize_hop15529View Report
Logic errorDereference of undefined pointer valuelexcread.clexc_to_fsm104511View Report
Memory errorMemory leakstructures.cfsm_extract_nonidentity79636View Report
Memory errorMemory leakiface.cprint_dot166531View Report
Memory errorMemory leakflags.cflag_eliminate9129View Report
Memory errorMemory leakconstructions.cfsm_add_sink28986View Report
Memory errorMemory leakflags.cflag_twosided4928View Report
Memory errorMemory leakiface.cprint_dot166829View Report
Memory errorMemory leakutf8.cdecode_quoted13626View Report
Memory errorMemory leakconstructions.cfsm_compose83817View Report
Memory errorMemory leakio.cload_defined60116View Report
Memory errorMemory leaklexcread.clexc_add_network2688View Report
Memory errorMemory leakiface.cprint_dot166829View Report
Memory errorMemory leakutf8.cint2utf8str25025View Report
Logic errorResult of operation is garbage or undefinedspelling.ccalculate_h41633View Report
Logic errorResult of operation is garbage or undefinedconstructions.cfsm_intersect45013View Report
Logic errorResult of operation is garbage or undefinedconstructions.ctriplet_hash_insert_with_key32630View Report
Logic errorResult of operation is garbage or undefineddeterminize.csigma_to_pairs62619View Report
Logic errorUninitialized argument valuestructures.cfsm_extract_nonidentity6888View Report
Memory errorUse of zero allocatedapply.capply_stack_push35438View Report