2024-04-18 06:20 ftp://ftp.de.debian.org/debian/pool/main/libs/libssw/libssw_1.2.5.orig.tar.gz 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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 397464e (2024-04-17 17:31:21 +0200) count: 35 29 elapsed-time: 2.2 2.5 head-timing-info: old-timing-info: head results: Complete-Striped-Smith-Waterman-Library-1.2.5/src/example.cpp:43:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw_cpp.h:222:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw_cpp.h:223:3: note: Found duplicate branches for 'if' and 'else'. Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw_cpp.h:222:3: note: Found duplicate branches for 'if' and 'else'. Complete-Striped-Smith-Waterman-Library-1.2.5/src/example.c:20:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw_cpp.cpp:221:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw_cpp.cpp:346:51: style: Redundant pointer operation on 'alignment' - it's already a pointer. [redundantPointerOp] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw_cpp.cpp:387:51: style: Redundant pointer operation on 'alignment' - it's already a pointer. [redundantPointerOp] Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:77:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:258:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/sswjni.c:56:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JNI_ABORT [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/sswjni.c:13:23: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Complete-Striped-Smith-Waterman-Library-1.2.5/src/sswjni.c:5:56: style: Parameter 'align' can be declared as pointer to const [constParameterPointer] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:173:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __m128i [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:232:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __m128i [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:394:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __m128i [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:441:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __m128i [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:714:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:840:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Complete-Striped-Smith-Waterman-Library-1.2.5/src/example.c:26:13: style: Variable 'c' is assigned a value that is never used. [unreadVariable] Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:172:4: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:398:4: error: Common realloc mistake: 'num' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:400:5: error: Common realloc mistake: 'read_rc' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:401:5: error: Common realloc mistake: 'num_rc' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:430:5: error: Common realloc mistake: 'ref_num' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:256:10: style: Variable 'table' can be declared as pointer to const [constVariablePointer] Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:86:14: style: Variable 'c' is assigned a value that is never used. [unreadVariable] Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:345:8: style: Variable 's' is assigned a value that is never used. [unreadVariable] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:619:4: error: Common realloc mistake: 'h_b' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:620:4: error: Common realloc mistake: 'e_b' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:621:4: error: Common realloc mistake: 'h_c' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:626:4: error: Common realloc mistake: 'direction' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:729:5: error: Common realloc mistake: 'c' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:741:4: error: Common realloc mistake: 'c' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:749:4: error: Common realloc mistake: 'c' nulled but not freed upon failure [memleakOnRealloc] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:227:47: style: Variable 'end_read_column' is allocated memory that is never used. [unusedAllocatedMemory] Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:436:47: style: Variable 'end_read_column' is allocated memory that is never used. [unusedAllocatedMemory] diff: head Complete-Striped-Smith-Waterman-Library-1.2.5/src/main.c:258:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] head Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:232:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __m128i [valueFlowBailoutIncompleteVar] head Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:394:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __m128i [valueFlowBailoutIncompleteVar] head Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:441:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __m128i [valueFlowBailoutIncompleteVar] head Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:714:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head Complete-Striped-Smith-Waterman-Library-1.2.5/src/ssw.c:840:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] DONE