2025-05-06 06:34 ftp://ftp.de.debian.org/debian/pool/main/m/minimap2/minimap2_2.27+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 581f101 (2025-05-05 21:13:30 +0200) count: 204 186 elapsed-time: 23.5 22.7 head-timing-info: old-timing-info: head results: minimap2-2.27/align.c:332:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/align.c:355:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] minimap2-2.27/align.c:41:7: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] minimap2-2.27/align.c:862:19: note: Assuming allocation function fails minimap2-2.27/align.c:862:9: note: Assignment 'tseq=(uint8_t*)malloc(tl)', assigned value is 0 minimap2-2.27/align.c:867:17: note: Calling function 'mm_seq_rev', 2nd argument 'tseq' value is 0 minimap2-2.27/align.c:41:7: note: Null pointer dereference minimap2-2.27/align.c:41:15: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] minimap2-2.27/align.c:862:19: note: Assuming allocation function fails minimap2-2.27/align.c:862:9: note: Assignment 'tseq=(uint8_t*)malloc(tl)', assigned value is 0 minimap2-2.27/align.c:867:17: note: Calling function 'mm_seq_rev', 2nd argument 'tseq' value is 0 minimap2-2.27/align.c:41:15: note: Null pointer dereference minimap2-2.27/align.c:41:24: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] minimap2-2.27/align.c:862:19: note: Assuming allocation function fails minimap2-2.27/align.c:862:9: note: Assignment 'tseq=(uint8_t*)malloc(tl)', assigned value is 0 minimap2-2.27/align.c:867:17: note: Calling function 'mm_seq_rev', 2nd argument 'tseq' value is 0 minimap2-2.27/align.c:41:24: note: Null pointer dereference minimap2-2.27/align.c:41:42: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] minimap2-2.27/align.c:862:19: note: Assuming allocation function fails minimap2-2.27/align.c:862:9: note: Assignment 'tseq=(uint8_t*)malloc(tl)', assigned value is 0 minimap2-2.27/align.c:867:17: note: Calling function 'mm_seq_rev', 2nd argument 'tseq' value is 0 minimap2-2.27/align.c:41:42: note: Null pointer dereference minimap2-2.27/align.c:91:4: warning: If memory allocation fails, then there is a possible null pointer dereference: qseq2 [nullPointerOutOfMemory] minimap2-2.27/align.c:88:21: note: Assuming allocation function fails minimap2-2.27/align.c:88:11: note: Assignment 'qseq2=(uint8_t*)malloc(q_len)', assigned value is 0 minimap2-2.27/align.c:91:4: note: Null pointer dereference minimap2-2.27/align.c:218:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] minimap2-2.27/align.c:217:25: note: Assuming allocation function fails minimap2-2.27/align.c:217:6: note: Assignment 'p=(struct mm_extra_t*)calloc(cap,4)', assigned value is 0 minimap2-2.27/align.c:218:9: note: Null pointer dereference minimap2-2.27/align.c:219:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] minimap2-2.27/align.c:217:25: note: Assuming allocation function fails minimap2-2.27/align.c:217:6: note: Assignment 'p=(struct mm_extra_t*)calloc(cap,4)', assigned value is 0 minimap2-2.27/align.c:219:2: note: Null pointer dereference minimap2-2.27/align.c:245:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] minimap2-2.27/align.c:217:25: note: Assuming allocation function fails minimap2-2.27/align.c:217:6: note: Assignment 'p=(struct mm_extra_t*)calloc(cap,4)', assigned value is 0 minimap2-2.27/align.c:245:3: note: Null pointer dereference minimap2-2.27/align.c:247:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] minimap2-2.27/align.c:217:25: note: Assuming allocation function fails minimap2-2.27/align.c:217:6: note: Assignment 'p=(struct mm_extra_t*)calloc(cap,4)', assigned value is 0 minimap2-2.27/align.c:247:2: note: Null pointer dereference minimap2-2.27/align.c:311:4: warning: If memory allocation fails, then there is a possible null pointer dereference: r->p [nullPointerOutOfMemory] minimap2-2.27/align.c:310:29: note: Assuming allocation function fails minimap2-2.27/align.c:310:10: note: Assignment 'r->p=(struct mm_extra_t*)calloc(capacity,4)', assigned value is 0 minimap2-2.27/align.c:311:4: note: Null pointer dereference minimap2-2.27/align.c:783:7: warning: If memory allocation fails, then there is a possible null pointer dereference: r->p [nullPointerOutOfMemory] minimap2-2.27/align.c:782:32: note: Assuming allocation function fails minimap2-2.27/align.c:782:13: note: Assignment 'r->p=(struct mm_extra_t*)calloc(capacity,4)', assigned value is 0 minimap2-2.27/align.c:783:7: note: Null pointer dereference minimap2-2.27/align.c:985:22: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] minimap2-2.27/align.c:984:23: note: Assuming allocation function fails minimap2-2.27/align.c:984:13: note: Assignment 'qseq0[0]=(uint8_t*)malloc(qlen*2)', assigned value is 0 minimap2-2.27/align.c:985:22: note: Null pointer addition minimap2-2.27/align.c:978:23: style: Local variable 'seq_nt4_table' shadows outer variable [shadowVariable] minimap2-2.27/bseq.h:28:22: note: Shadowed declaration minimap2-2.27/align.c:978:23: note: Shadow variable minimap2-2.27/align.c:59:130: style: Parameter 'cigar' can be declared as pointer to const [constParameterPointer] minimap2-2.27/align.c:303:71: style: Parameter 'cigar' can be declared as pointer to const [constParameterPointer] minimap2-2.27/align.c:369:72: style: Parameter 'qseq0' can be declared as const array [constParameter] minimap2-2.27/align.c:369:91: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] minimap2-2.27/align.c:544:11: style: Variable 'qseq' can be declared as pointer to const [constVariablePointer] minimap2-2.27/bseq.c:69:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/bseq.c:114:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/bseq.c:145:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/bseq.c:9:1: warning: If memory allocation fails, then there is a possible null pointer dereference: ks [nullPointerOutOfMemory] minimap2-2.27/bseq.c:9:1: note: Assuming allocation function fails minimap2-2.27/bseq.c:9:1: note: Assignment 'ks=(struct kstream_t*)calloc(1,sizeof(struct kstream_t))', assigned value is 0 minimap2-2.27/bseq.c:9:1: note: Null pointer dereference minimap2-2.27/bseq.c:9:1: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] minimap2-2.27/bseq.c:9:1: note: Assuming allocation function fails minimap2-2.27/bseq.c:9:1: note: Assignment 's=(struct kseq_t*)calloc(1,sizeof(struct kseq_t))', assigned value is 0 minimap2-2.27/bseq.c:9:1: note: Null pointer dereference minimap2-2.27/bseq.c:45:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfMemory] minimap2-2.27/bseq.c:44:30: note: Assuming allocation function fails minimap2-2.27/bseq.c:44:7: note: Assignment 'fp=(struct mm_bseq_file_t*)calloc(1,sizeof(struct mm_bseq_file_t))', assigned value is 0 minimap2-2.27/bseq.c:45:2: note: Null pointer dereference minimap2-2.27/bseq.c:46:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfMemory] minimap2-2.27/bseq.c:44:30: note: Assuming allocation function fails minimap2-2.27/bseq.c:44:7: note: Assignment 'fp=(struct mm_bseq_file_t*)calloc(1,sizeof(struct mm_bseq_file_t))', assigned value is 0 minimap2-2.27/bseq.c:46:2: note: Null pointer dereference minimap2-2.27/bseq.c:46:21: warning: If memory allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfMemory] minimap2-2.27/bseq.c:44:30: note: Assuming allocation function fails minimap2-2.27/bseq.c:44:7: note: Assignment 'fp=(struct mm_bseq_file_t*)calloc(1,sizeof(struct mm_bseq_file_t))', assigned value is 0 minimap2-2.27/bseq.c:46:21: note: Null pointer dereference minimap2-2.27/bseq.c:61:9: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] minimap2-2.27/bseq.c:60:19: note: Assuming allocation function fails minimap2-2.27/bseq.c:60:6: note: Assignment 't=(char*)malloc(s->l+1)', assigned value is 0 minimap2-2.27/bseq.c:61:9: note: Null pointer dereference minimap2-2.27/bseq.c:97:3: error: Uninitialized variable: *(&s) [legacyUninitvar] minimap2-2.27/bseq.c:151:4: error: Uninitialized variable: *(&s) [legacyUninitvar] minimap2-2.27/esterr.c:49:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/example.c:23:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/example.c:47:5: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] minimap2-2.27/example.c:48:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] minimap2-2.27/example.c:48:5: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] minimap2-2.27/example.c:50:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] minimap2-2.27/example.c:10:1: warning: If memory allocation fails, then there is a possible null pointer dereference: ks [nullPointerOutOfMemory] minimap2-2.27/example.c:10:1: note: Assuming allocation function fails minimap2-2.27/example.c:10:1: note: Assignment 'ks=(struct kstream_t*)calloc(1,sizeof(struct kstream_t))', assigned value is 0 minimap2-2.27/example.c:10:1: note: Null pointer dereference minimap2-2.27/example.c:10:1: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] minimap2-2.27/example.c:10:1: note: Assuming allocation function fails minimap2-2.27/example.c:10:1: note: Assignment 's=(struct kseq_t*)calloc(1,sizeof(struct kseq_t))', assigned value is 0 minimap2-2.27/example.c:10:1: note: Null pointer dereference minimap2-2.27/example.c:45:16: style: Local variable 'r' shadows outer variable [shadowVariable] minimap2-2.27/example.c:33:19: note: Shadowed declaration minimap2-2.27/example.c:45:16: note: Shadow variable minimap2-2.27/format.c:88:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/format.c:71:19: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] minimap2-2.27/format.c:95:25: note: Assuming allocation function fails minimap2-2.27/format.c:95:12: note: Assignment 'rg_line=(char*)malloc(strlen(s)+1)', assigned value is 0 minimap2-2.27/format.c:97:12: note: Calling function 'mm_escape', 1st argument 'rg_line' value is 0 minimap2-2.27/format.c:71:13: note: Assignment 'p=q=s', assigned value is 0 minimap2-2.27/format.c:71:19: note: Null pointer dereference minimap2-2.27/format.c:96:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rg_line [nullPointerOutOfMemory] minimap2-2.27/format.c:95:25: note: Assuming allocation function fails minimap2-2.27/format.c:95:12: note: Assignment 'rg_line=(char*)malloc(strlen(s)+1)', assigned value is 0 minimap2-2.27/format.c:96:9: note: Null pointer dereference minimap2-2.27/format.c:98:18: warning: If memory allocation fails, then there is a possible null pointer dereference: rg_line [nullPointerOutOfMemory] minimap2-2.27/format.c:95:25: note: Assuming allocation function fails minimap2-2.27/format.c:95:12: note: Assignment 'rg_line=(char*)malloc(strlen(s)+1)', assigned value is 0 minimap2-2.27/format.c:98:18: note: Null pointer dereference minimap2-2.27/format.c:118:38: style:inconclusive: Function 'mm_write_sam_hdr' argument 1 names different: declaration 'mi' definition 'idx'. [funcArgNamesDifferent] minimap2-2.27/mmpriv.h:68:38: note: Function 'mm_write_sam_hdr' argument 1 names different: declaration 'mi' definition 'idx'. minimap2-2.27/format.c:118:38: note: Function 'mm_write_sam_hdr' argument 1 names different: declaration 'mi' definition 'idx'. minimap2-2.27/format.c:617:123: style:inconclusive: Function 'mm_write_sam2' argument 7 names different: declaration 'n_regs' definition 'n_regss'. [funcArgNamesDifferent] minimap2-2.27/mmpriv.h:72:123: note: Function 'mm_write_sam2' argument 7 names different: declaration 'n_regs' definition 'n_regss'. minimap2-2.27/format.c:617:123: note: Function 'mm_write_sam2' argument 7 names different: declaration 'n_regs' definition 'n_regss'. minimap2-2.27/format.c:617:156: style:inconclusive: Function 'mm_write_sam2' argument 8 names different: declaration 'regs' definition 'regss'. [funcArgNamesDifferent] minimap2-2.27/mmpriv.h:72:155: note: Function 'mm_write_sam2' argument 8 names different: declaration 'regs' definition 'regss'. minimap2-2.27/format.c:617:156: note: Function 'mm_write_sam2' argument 8 names different: declaration 'regs' definition 'regss'. minimap2-2.27/format.c:289:23: style: Local variable 'seq_nt4_table' shadows outer variable [shadowVariable] minimap2-2.27/bseq.h:28:22: note: Shadowed declaration minimap2-2.27/format.c:289:23: note: Shadow variable minimap2-2.27/format.c:408:23: style: Local variable 'seq_comp_table' shadows outer variable [shadowVariable] minimap2-2.27/bseq.h:29:22: note: Shadowed declaration minimap2-2.27/format.c:408:23: note: Shadow variable minimap2-2.27/format.c:54:11: style: Variable 'r' can be declared as pointer to const [constVariablePointer] minimap2-2.27/format.c:406:46: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] minimap2-2.27/hit.c:164:22: style: Condition 'ei=ei' is not redundant minimap2-2.27/hit.c:164:22: note: Condition 'eistack-1' is out of bounds. [pointerOutOfBounds] minimap2-2.27/lchain.c:149:25: style:inconclusive: Function 'mg_lchain_dp' argument 11 names different: declaration 'n_segs' definition 'n_seg'. [funcArgNamesDifferent] minimap2-2.27/mmpriv.h:85:25: note: Function 'mg_lchain_dp' argument 11 names different: declaration 'n_segs' definition 'n_seg'. minimap2-2.27/lchain.c:149:25: note: Function 'mg_lchain_dp' argument 11 names different: declaration 'n_segs' definition 'n_seg'. minimap2-2.27/lchain.c:102:11: style: Local variable 'j' shadows outer variable [shadowVariable] minimap2-2.27/lchain.c:82:13: note: Shadowed declaration minimap2-2.27/lchain.c:102:11: note: Shadow variable minimap2-2.27/lchain.c:323:16: style: Local variable 'lo' shadows outer variable [shadowVariable] minimap2-2.27/lchain.c:278:24: note: Shadowed declaration minimap2-2.27/lchain.c:323:16: note: Shadow variable minimap2-2.27/lchain.c:323:21: style: Local variable 'hi' shadows outer variable [shadowVariable] minimap2-2.27/lchain.c:278:28: note: Shadowed declaration minimap2-2.27/lchain.c:323:21: note: Shadow variable minimap2-2.27/lchain.c:327:23: style: Local variable 'q' shadows outer variable [shadowVariable] minimap2-2.27/lchain.c:278:17: note: Shadowed declaration minimap2-2.27/lchain.c:327:23: note: Shadow variable minimap2-2.27/lchain.c:328:14: style: Local variable 'width' shadows outer variable [shadowVariable] minimap2-2.27/lchain.c:317:23: note: Shadowed declaration minimap2-2.27/lchain.c:328:14: note: Shadow variable minimap2-2.27/main.c:114:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/main.c:130:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/ketopt.h:68:20: style: Condition 'argv[s->i][0]=='-'' is always true [knownConditionTrueFalse] minimap2-2.27/ketopt.h:64:36: note: Assuming that condition 'argv[s->i][0]!='-'' is not redundant minimap2-2.27/ketopt.h:68:20: note: Condition 'argv[s->i][0]=='-'' is always true minimap2-2.27/main.c:426:4: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] minimap2-2.27/main.c:129:8: style: Variable 'fnw' can be declared as pointer to const [constVariablePointer] minimap2-2.27/main.c:129:18: style: Variable 'rg' can be declared as pointer to const [constVariablePointer] minimap2-2.27/main.c:129:27: style: Variable 'junc_bed' can be declared as pointer to const [constVariablePointer] minimap2-2.27/main.c:129:46: style: Variable 'alt_list' can be declared as pointer to const [constVariablePointer] minimap2-2.27/ketopt.h:96:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] minimap2-2.27/map.c:256:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/map.c:418:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/map.c:602:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable p [valueFlowBailoutIncompleteVar] minimap2-2.27/map.c:626:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/map.c:365:4: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] minimap2-2.27/map.c:365:4: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] minimap2-2.27/map.c:365:4: portability: %ld in format string (no. 5) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] minimap2-2.27/map.c:694:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] minimap2-2.27/map.c:340:3: error: Common realloc mistake: 'regs0' nulled but not freed upon failure [memleakOnRealloc] minimap2-2.27/map.c:474:4: warning: If memory allocation fails, then there is a possible null pointer dereference: qlens [nullPointerOutOfMemory] minimap2-2.27/map.c:466:10: note: Assuming allocation function fails minimap2-2.27/map.c:466:10: note: Assignment 'qlens=(int*)calloc(max_seg+s->p->n_parts*3,sizeof(int))', assigned value is 0 minimap2-2.27/map.c:474:4: note: Null pointer dereference minimap2-2.27/map.c:493:8: warning: If memory allocation fails, then there is a possible null pointer dereference: r->p [nullPointerOutOfMemory] minimap2-2.27/map.c:492:33: note: Assuming allocation function fails minimap2-2.27/map.c:492:14: note: Assignment 'r->p=(struct mm_extra_t*)calloc(capacity,4)', assigned value is 0 minimap2-2.27/map.c:493:8: note: Null pointer dereference minimap2-2.27/map.c:533:7: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] minimap2-2.27/map.c:530:28: note: Assuming allocation function fails minimap2-2.27/map.c:530:13: note: Assignment 's=(struct step_t*)calloc(1,sizeof(struct step_t))', assigned value is 0 minimap2-2.27/map.c:533:7: note: Null pointer dereference minimap2-2.27/map.c:624:8: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfMemory] minimap2-2.27/map.c:622:31: note: Assuming allocation function fails minimap2-2.27/map.c:622:7: note: Assignment 'fp=(struct mm_bseq_file_t**)calloc(n,sizeof(struct mm_bseq_file_t*))', assigned value is 0 minimap2-2.27/map.c:624:8: note: Null pointer dereference minimap2-2.27/map.c:541:26: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] minimap2-2.27/map.c:540:27: note: Assuming allocation function fails minimap2-2.27/map.c:540:15: note: Assignment 's->n_reg=(int*)calloc(5*s->n_seq,sizeof(int))', assigned value is 0 minimap2-2.27/map.c:541:26: note: Null pointer addition minimap2-2.27/map.c:376:43: style:inconclusive: Function 'mm_map' argument 2 names different: declaration 'l_seq' definition 'qlen'. [funcArgNamesDifferent] minimap2-2.27/minimap.h:371:43: note: Function 'mm_map' argument 2 names different: declaration 'l_seq' definition 'qlen'. minimap2-2.27/map.c:376:43: note: Function 'mm_map' argument 2 names different: declaration 'l_seq' definition 'qlen'. minimap2-2.27/map.c:376:129: style:inconclusive: Function 'mm_map' argument 7 names different: declaration 'name' definition 'qname'. [funcArgNamesDifferent] minimap2-2.27/minimap.h:371:130: note: Function 'mm_map' argument 7 names different: declaration 'name' definition 'qname'. minimap2-2.27/map.c:376:129: note: Function 'mm_map' argument 7 names different: declaration 'name' definition 'qname'. minimap2-2.27/map.c:286:12: style: Local variable 'i' shadows outer variable [shadowVariable] minimap2-2.27/map.c:229:6: note: Shadowed declaration minimap2-2.27/map.c:286:12: note: Shadow variable minimap2-2.27/map.c:442:11: style: Local variable 't' shadows outer variable [shadowVariable] minimap2-2.27/map.c:414:9: note: Shadowed declaration minimap2-2.27/map.c:442:11: note: Shadow variable minimap2-2.27/map.c:28:33: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] minimap2-2.27/map.c:124:14: style: Variable 'q' can be declared as pointer to const [constVariablePointer] minimap2-2.27/map.c:177:14: style: Variable 'q' can be declared as pointer to const [constVariablePointer] minimap2-2.27/map.c:568:17: style: Variable 't' can be declared as pointer to const [constVariablePointer] minimap2-2.27/map.c:583:18: style: Variable 'r' can be declared as pointer to const [constVariablePointer] minimap2-2.27/map.c:470:21: style: Variable 'k0' is assigned a value that is never used. [unreadVariable] minimap2-2.27/misc.c:99:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUSAGE_SELF [valueFlowBailoutIncompleteVar] minimap2-2.27/misc.c:106:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUSAGE_SELF [valueFlowBailoutIncompleteVar] minimap2-2.27/misc.c:127:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] minimap2-2.27/misc.c:137:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] minimap2-2.27/misc.c:147:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] minimap2-2.27/misc.c:156:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] minimap2-2.27/misc.c:156:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable e [valueFlowBailoutIncompleteVar] minimap2-2.27/misc.c:159:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable e [valueFlowBailoutIncompleteVar] minimap2-2.27/options.c:80:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/options.c:178:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/options.c:144:20: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] minimap2-2.27/pe.c:74:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] minimap2-2.27/pe.c:74:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable e [valueFlowBailoutIncompleteVar] minimap2-2.27/pe.c:76:45: style:inconclusive: Function 'mm_pair' argument 3 names different: declaration 'dp_bonus' definition 'pe_bonus'. [funcArgNamesDifferent] minimap2-2.27/mmpriv.h:107:45: note: Function 'mm_pair' argument 3 names different: declaration 'dp_bonus' definition 'pe_bonus'. minimap2-2.27/pe.c:76:45: note: Function 'mm_pair' argument 3 names different: declaration 'dp_bonus' definition 'pe_bonus'. minimap2-2.27/pe.c:85:7: style: Local variable 'max' shadows outer variable [shadowVariable] minimap2-2.27/pe.c:79:10: note: Shadowed declaration minimap2-2.27/pe.c:85:7: note: Shadow variable minimap2-2.27/pe.c:18:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] minimap2-2.27/pe.c:18:38: style: Variable 'q' can be declared as pointer to const [constVariablePointer] minimap2-2.27/pe.c:45:44: style: Parameter 'n_regs' can be declared as pointer to const [constParameterPointer] minimap2-2.27/sdust.c:118:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] minimap2-2.27/seed.c:39:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] minimap2-2.27/seed.c:114:14: style: Variable 'q' can be declared as pointer to const [constVariablePointer] minimap2-2.27/sketch.c:79:18: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] minimap2-2.27/splitidx.c:17:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/splitidx.c:45:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] minimap2-2.27/splitidx.c:15:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fn [nullPointerOutOfMemory] minimap2-2.27/splitidx.c:13:20: note: Assuming allocation function fails minimap2-2.27/splitidx.c:13:7: note: Assignment 'fn=(char*)calloc(strlen(prefix)+10,1)', assigned value is 0 minimap2-2.27/splitidx.c:15:18: note: Null pointer dereference minimap2-2.27/splitidx.c:43:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fn [nullPointerOutOfMemory] minimap2-2.27/splitidx.c:40:7: note: Assuming allocation function fails minimap2-2.27/splitidx.c:40:7: note: Assignment 'fn=(char*)calloc(strlen(prefix)+10,sizeof(char))', assigned value is 0 minimap2-2.27/splitidx.c:43:22: note: Null pointer dereference minimap2-2.27/splitidx.c:58:3: warning: If memory allocation fails, then there is a possible null pointer dereference: mi [nullPointerOutOfMemory] minimap2-2.27/splitidx.c:54:7: note: Assuming allocation function fails minimap2-2.27/splitidx.c:54:7: note: Assignment 'mi=(struct mm_idx_t*)calloc(1,sizeof(struct mm_idx_t))', assigned value is 0 minimap2-2.27/splitidx.c:58:3: note: Null pointer dereference minimap2-2.27/splitidx.c:60:2: warning: If memory allocation fails, then there is a possible null pointer dereference: mi [nullPointerOutOfMemory] minimap2-2.27/splitidx.c:54:7: note: Assuming allocation function fails minimap2-2.27/splitidx.c:54:7: note: Assignment 'mi=(struct mm_idx_t*)calloc(1,sizeof(struct mm_idx_t))', assigned value is 0 minimap2-2.27/splitidx.c:60:2: note: Null pointer dereference minimap2-2.27/splitidx.c:60:12: warning: If memory allocation fails, then there is a possible null pointer dereference: mi [nullPointerOutOfMemory] minimap2-2.27/splitidx.c:54:7: note: Assuming allocation function fails minimap2-2.27/splitidx.c:54:7: note: Assignment 'mi=(struct mm_idx_t*)calloc(1,sizeof(struct mm_idx_t))', assigned value is 0 minimap2-2.27/splitidx.c:60:12: note: Null pointer dereference minimap2-2.27/splitidx.c:66:4: warning: If memory allocation fails, then there is a possible null pointer dereference: mi [nullPointerOutOfMemory] minimap2-2.27/splitidx.c:54:7: note: Assuming allocation function fails minimap2-2.27/splitidx.c:54:7: note: Assignment 'mi=(struct mm_idx_t*)calloc(1,sizeof(struct mm_idx_t))', assigned value is 0 minimap2-2.27/splitidx.c:66:4: note: Null pointer dereference minimap2-2.27/splitidx.c:67:17: warning: If memory allocation fails, then there is a possible null pointer dereference: mi [nullPointerOutOfMemory] minimap2-2.27/splitidx.c:54:7: note: Assuming allocation function fails minimap2-2.27/splitidx.c:54:7: note: Assignment 'mi=(struct mm_idx_t*)calloc(1,sizeof(struct mm_idx_t))', assigned value is 0 minimap2-2.27/splitidx.c:67:17: note: Null pointer dereference minimap2-2.27/splitidx.c:81:10: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fn [nullPointerOutOfMemory] minimap2-2.27/splitidx.c:78:7: note: Assuming allocation function fails minimap2-2.27/splitidx.c:78:7: note: Assignment 'fn=(char*)calloc(strlen(prefix)+10,sizeof(char))', assigned value is 0 minimap2-2.27/splitidx.c:81:10: note: Null pointer dereference minimap2-2.27/lchain.c:228:1: error: Null pointer dereference: itr [ctunullpointer] minimap2-2.27/lchain.c:346:12: note: Calling function krmq_itr_next_bidir_lc_elem, 2nd argument is null minimap2-2.27/lchain.c:228:1: note: Dereferencing argument itr that is null minimap2-2.27/lchain.c:228:1: error: Null pointer dereference: itr [ctunullpointer] minimap2-2.27/lchain.c:285:5: note: Calling function krmq_insert_lc_elem, 3rd argument is null minimap2-2.27/lchain.c:228:1: note: Dereferencing argument itr that is null diff: head minimap2-2.27/align.c:41:15: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] minimap2-2.27/align.c:862:19: note: Assuming allocation function fails minimap2-2.27/align.c:862:9: note: Assignment 'tseq=(uint8_t*)malloc(tl)', assigned value is 0 minimap2-2.27/align.c:867:17: note: Calling function 'mm_seq_rev', 2nd argument 'tseq' value is 0 minimap2-2.27/align.c:41:15: note: Null pointer dereference head minimap2-2.27/align.c:41:24: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] minimap2-2.27/align.c:862:19: note: Assuming allocation function fails minimap2-2.27/align.c:862:9: note: Assignment 'tseq=(uint8_t*)malloc(tl)', assigned value is 0 minimap2-2.27/align.c:867:17: note: Calling function 'mm_seq_rev', 2nd argument 'tseq' value is 0 minimap2-2.27/align.c:41:24: note: Null pointer dereference head minimap2-2.27/align.c:41:42: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] minimap2-2.27/align.c:862:19: note: Assuming allocation function fails minimap2-2.27/align.c:862:9: note: Assignment 'tseq=(uint8_t*)malloc(tl)', assigned value is 0 minimap2-2.27/align.c:867:17: note: Calling function 'mm_seq_rev', 2nd argument 'tseq' value is 0 minimap2-2.27/align.c:41:42: note: Null pointer dereference 2.17.0 minimap2-2.27/align.c:985:22: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] minimap2-2.27/align.c:984:23: note: Assuming allocation function fails minimap2-2.27/align.c:984:13: note: Assignment 'qseq0[0]=(uint8_t*)malloc(qlen*2)', assigned value is 0 minimap2-2.27/align.c:985:22: note: Null pointer addition head minimap2-2.27/align.c:985:22: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] minimap2-2.27/align.c:984:23: note: Assuming allocation function fails minimap2-2.27/align.c:984:13: note: Assignment 'qseq0[0]=(uint8_t*)malloc(qlen*2)', assigned value is 0 minimap2-2.27/align.c:985:22: note: Null pointer addition head minimap2-2.27/bseq.c:46:21: warning: If memory allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfMemory] minimap2-2.27/bseq.c:44:30: note: Assuming allocation function fails minimap2-2.27/bseq.c:44:7: note: Assignment 'fp=(struct mm_bseq_file_t*)calloc(1,sizeof(struct mm_bseq_file_t))', assigned value is 0 minimap2-2.27/bseq.c:46:21: note: Null pointer dereference head minimap2-2.27/index.c:50:13: warning: If memory allocation fails, then there is a possible null pointer dereference: mi [nullPointerOutOfMemory] minimap2-2.27/index.c:49:24: note: Assuming allocation function fails minimap2-2.27/index.c:49:7: note: Assignment 'mi=(struct mm_idx_t*)calloc(1,sizeof(struct mm_idx_t))', assigned value is 0 minimap2-2.27/index.c:50:13: note: Null pointer dereference head minimap2-2.27/index.c:50:24: warning: If memory allocation fails, then there is a possible null pointer dereference: mi [nullPointerOutOfMemory] minimap2-2.27/index.c:49:24: note: Assuming allocation function fails minimap2-2.27/index.c:49:7: note: Assignment 'mi=(struct mm_idx_t*)calloc(1,sizeof(struct mm_idx_t))', assigned value is 0 minimap2-2.27/index.c:50:24: note: Null pointer dereference head minimap2-2.27/index.c:50:35: warning: If memory allocation fails, then there is a possible null pointer dereference: mi [nullPointerOutOfMemory] minimap2-2.27/index.c:49:24: note: Assuming allocation function fails minimap2-2.27/index.c:49:7: note: Assignment 'mi=(struct mm_idx_t*)calloc(1,sizeof(struct mm_idx_t))', assigned value is 0 minimap2-2.27/index.c:50:35: note: Null pointer dereference head minimap2-2.27/ksw2_ll_sse.c:47:10: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] minimap2-2.27/ksw2_ll_sse.c:45:15: note: Assuming allocation function fails minimap2-2.27/ksw2_ll_sse.c:45:6: note: Assignment 'q=(struct kswq_t*)malloc(sizeof(struct kswq_t)+256+16*slen*(m+4))', assigned value is 0 minimap2-2.27/ksw2_ll_sse.c:47:10: note: Null pointer dereference head minimap2-2.27/ksw2_ll_sse.c:48:10: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] minimap2-2.27/ksw2_ll_sse.c:45:15: note: Assuming allocation function fails minimap2-2.27/ksw2_ll_sse.c:45:6: note: Assignment 'q=(struct kswq_t*)malloc(sizeof(struct kswq_t)+256+16*slen*(m+4))', assigned value is 0 minimap2-2.27/ksw2_ll_sse.c:48:10: note: Null pointer dereference head minimap2-2.27/ksw2_ll_sse.c:49:10: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] minimap2-2.27/ksw2_ll_sse.c:45:15: note: Assuming allocation function fails minimap2-2.27/ksw2_ll_sse.c:45:6: note: Assignment 'q=(struct kswq_t*)malloc(sizeof(struct kswq_t)+256+16*slen*(m+4))', assigned value is 0 minimap2-2.27/ksw2_ll_sse.c:49:10: note: Null pointer dereference head minimap2-2.27/ksw2_ll_sse.c:50:12: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] minimap2-2.27/ksw2_ll_sse.c:45:15: note: Assuming allocation function fails minimap2-2.27/ksw2_ll_sse.c:45:6: note: Assignment 'q=(struct kswq_t*)malloc(sizeof(struct kswq_t)+256+16*slen*(m+4))', assigned value is 0 minimap2-2.27/ksw2_ll_sse.c:50:12: note: Null pointer dereference head minimap2-2.27/ksw2_ll_sse.c:51:18: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] minimap2-2.27/ksw2_ll_sse.c:45:15: note: Assuming allocation function fails minimap2-2.27/ksw2_ll_sse.c:45:6: note: Assignment 'q=(struct kswq_t*)malloc(sizeof(struct kswq_t)+256+16*slen*(m+4))', assigned value is 0 minimap2-2.27/ksw2_ll_sse.c:51:18: note: Null pointer dereference head minimap2-2.27/ksw2_ll_sse.c:51:34: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] minimap2-2.27/ksw2_ll_sse.c:45:15: note: Assuming allocation function fails minimap2-2.27/ksw2_ll_sse.c:45:6: note: Assignment 'q=(struct kswq_t*)malloc(sizeof(struct kswq_t)+256+16*slen*(m+4))', assigned value is 0 minimap2-2.27/ksw2_ll_sse.c:51:34: note: Null pointer dereference head minimap2-2.27/ksw2_ll_sse.c:54:30: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] minimap2-2.27/ksw2_ll_sse.c:45:15: note: Assuming allocation function fails minimap2-2.27/ksw2_ll_sse.c:45:6: note: Assignment 'q=(struct kswq_t*)malloc(sizeof(struct kswq_t)+256+16*slen*(m+4))', assigned value is 0 minimap2-2.27/ksw2_ll_sse.c:54:30: note: Null pointer dereference head minimap2-2.27/ksw2_ll_sse.c:58:11: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] minimap2-2.27/ksw2_ll_sse.c:45:15: note: Assuming allocation function fails minimap2-2.27/ksw2_ll_sse.c:45:6: note: Assignment 'q=(struct kswq_t*)malloc(sizeof(struct kswq_t)+256+16*slen*(m+4))', assigned value is 0 minimap2-2.27/ksw2_ll_sse.c:58:11: note: Null pointer dereference head minimap2-2.27/ksw2_ll_sse.c:59:19: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] minimap2-2.27/ksw2_ll_sse.c:45:15: note: Assuming allocation function fails minimap2-2.27/ksw2_ll_sse.c:45:6: note: Assignment 'q=(struct kswq_t*)malloc(sizeof(struct kswq_t)+256+16*slen*(m+4))', assigned value is 0 minimap2-2.27/ksw2_ll_sse.c:59:19: note: Null pointer dereference head minimap2-2.27/ksw2_ll_sse.c:60:14: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] minimap2-2.27/ksw2_ll_sse.c:45:15: note: Assuming allocation function fails minimap2-2.27/ksw2_ll_sse.c:45:6: note: Assignment 'q=(struct kswq_t*)malloc(sizeof(struct kswq_t)+256+16*slen*(m+4))', assigned value is 0 minimap2-2.27/ksw2_ll_sse.c:60:14: note: Null pointer dereference 2.17.0 minimap2-2.27/map.c:541:26: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] minimap2-2.27/map.c:540:27: note: Assuming allocation function fails minimap2-2.27/map.c:540:15: note: Assignment 's->n_reg=(int*)calloc(5*s->n_seq,sizeof(int))', assigned value is 0 minimap2-2.27/map.c:541:26: note: Null pointer addition head minimap2-2.27/map.c:541:26: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] minimap2-2.27/map.c:540:27: note: Assuming allocation function fails minimap2-2.27/map.c:540:15: note: Assignment 's->n_reg=(int*)calloc(5*s->n_seq,sizeof(int))', assigned value is 0 minimap2-2.27/map.c:541:26: note: Null pointer addition head minimap2-2.27/splitidx.c:60:12: warning: If memory allocation fails, then there is a possible null pointer dereference: mi [nullPointerOutOfMemory] minimap2-2.27/splitidx.c:54:7: note: Assuming allocation function fails minimap2-2.27/splitidx.c:54:7: note: Assignment 'mi=(struct mm_idx_t*)calloc(1,sizeof(struct mm_idx_t))', assigned value is 0 minimap2-2.27/splitidx.c:60:12: note: Null pointer dereference DONE