2025-11-21 08:37 ftp://ftp.de.debian.org/debian/pool/main/f/forensics-colorize/forensics-colorize_1.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 38 38 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: colorize-release-1.1/src/helpers.c:28:46: style:inconclusive: Function 'find_file_size' argument 3 names different: declaration 'result' definition 'sz'. [funcArgNamesDifferent] colorize-release-1.1/src/main.h:81:46: note: Function 'find_file_size' argument 3 names different: declaration 'result' definition 'sz'. colorize-release-1.1/src/helpers.c:28:46: note: Function 'find_file_size' argument 3 names different: declaration 'result' definition 'sz'. colorize-release-1.1/src/helpers.c:28:26: style: Parameter 'fn' can be declared as pointer to const [constParameterPointer] colorize-release-1.1/src/ui.c:20:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ap [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/ui.c:25:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ap [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/ui.c:31:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ap [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/filecompare.c:28:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/filecompare.c:79:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/filecompare.c:108:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/filecompare.c:235:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/colorize.c:28:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/colorize.c:47:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/colorize.c:124:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/colorize.c:275:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/colorize.c:356:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/colorize.c:402:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] colorize-release-1.1/src/filecompare.c:229:23: style: Condition 'initialize_state(s)' is always false [knownConditionTrueFalse] colorize-release-1.1/src/filecompare.c:229:23: note: Calling function 'initialize_state' returns 0 colorize-release-1.1/src/filecompare.c:229:23: note: Condition 'initialize_state(s)' is always false colorize-release-1.1/src/filecompare.c:202:5: error: Resource leak: h2 [resourceLeak] colorize-release-1.1/src/filecompare.c:18:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] colorize-release-1.1/src/filecompare.c:220:29: note: Assuming allocation function fails colorize-release-1.1/src/filecompare.c:220:14: note: Assignment 's=(struct state*)malloc(sizeof(struct state))', assigned value is 0 colorize-release-1.1/src/filecompare.c:229:24: note: Calling function 'initialize_state', 1st argument 's' value is 0 colorize-release-1.1/src/filecompare.c:18:3: note: Null pointer dereference colorize-release-1.1/src/filecompare.c:19:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] colorize-release-1.1/src/filecompare.c:220:29: note: Assuming allocation function fails colorize-release-1.1/src/filecompare.c:220:14: note: Assignment 's=(struct state*)malloc(sizeof(struct state))', assigned value is 0 colorize-release-1.1/src/filecompare.c:229:24: note: Calling function 'initialize_state', 1st argument 's' value is 0 colorize-release-1.1/src/filecompare.c:19:3: note: Null pointer dereference colorize-release-1.1/src/filecompare.c:20:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] colorize-release-1.1/src/filecompare.c:220:29: note: Assuming allocation function fails colorize-release-1.1/src/filecompare.c:220:14: note: Assignment 's=(struct state*)malloc(sizeof(struct state))', assigned value is 0 colorize-release-1.1/src/filecompare.c:229:24: note: Calling function 'initialize_state', 1st argument 's' value is 0 colorize-release-1.1/src/filecompare.c:20:3: note: Null pointer dereference colorize-release-1.1/src/filecompare.c:75:32: style: Parameter 's' can be declared as pointer to const [constParameterPointer] colorize-release-1.1/src/filecompare.c:121:34: style: Parameter 's' can be declared as pointer to const [constParameterPointer] colorize-release-1.1/src/filecompare.c:121:52: style: Parameter 'b1' can be declared as pointer to const [constParameterPointer] colorize-release-1.1/src/filecompare.c:121:71: style: Parameter 'b2' can be declared as pointer to const [constParameterPointer] colorize-release-1.1/src/colorize.c:315:24: style: Condition 'write_file_header(s)' is always false [knownConditionTrueFalse] colorize-release-1.1/src/colorize.c:315:24: note: Calling function 'write_file_header' returns 0 colorize-release-1.1/src/colorize.c:315:24: note: Condition 'write_file_header(s)' is always false colorize-release-1.1/src/colorize.c:318:22: style: Condition 'write_file_info(s)' is always false [knownConditionTrueFalse] colorize-release-1.1/src/colorize.c:318:22: note: Calling function 'write_file_info' returns 0 colorize-release-1.1/src/colorize.c:318:22: note: Condition 'write_file_info(s)' is always false colorize-release-1.1/src/colorize.c:399:23: style: Condition 'process_cmd_line(s,argc,argv)' is always false [knownConditionTrueFalse] colorize-release-1.1/src/colorize.c:399:23: note: Calling function 'process_cmd_line' returns 0 colorize-release-1.1/src/colorize.c:399:23: note: Condition 'process_cmd_line(s,argc,argv)' is always false colorize-release-1.1/src/colorize.c:283:7: error: Memory leak: output [memleak] colorize-release-1.1/src/colorize.c:309:5: error: Memory leak: output [memleak] colorize-release-1.1/src/colorize.c:47:8: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] colorize-release-1.1/src/colorize.c:390:29: note: Assuming allocation function fails colorize-release-1.1/src/colorize.c:390:14: note: Assignment 's=(struct state*)malloc(sizeof(struct state))', assigned value is 0 colorize-release-1.1/src/colorize.c:396:24: note: Calling function 'initialize_state', 1st argument 's' value is 0 colorize-release-1.1/src/colorize.c:47:8: note: Null pointer dereference colorize-release-1.1/src/colorize.c:53:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] colorize-release-1.1/src/colorize.c:390:29: note: Assuming allocation function fails colorize-release-1.1/src/colorize.c:390:14: note: Assignment 's=(struct state*)malloc(sizeof(struct state))', assigned value is 0 colorize-release-1.1/src/colorize.c:396:24: note: Calling function 'initialize_state', 1st argument 's' value is 0 colorize-release-1.1/src/colorize.c:47:63: note: Assuming condition is false colorize-release-1.1/src/colorize.c:53:3: note: Null pointer dereference colorize-release-1.1/src/colorize.c:54:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] colorize-release-1.1/src/colorize.c:390:29: note: Assuming allocation function fails colorize-release-1.1/src/colorize.c:390:14: note: Assignment 's=(struct state*)malloc(sizeof(struct state))', assigned value is 0 colorize-release-1.1/src/colorize.c:396:24: note: Calling function 'initialize_state', 1st argument 's' value is 0 colorize-release-1.1/src/colorize.c:47:63: note: Assuming condition is false colorize-release-1.1/src/colorize.c:54:3: note: Null pointer dereference colorize-release-1.1/src/colorize.c:55:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] colorize-release-1.1/src/colorize.c:390:29: note: Assuming allocation function fails colorize-release-1.1/src/colorize.c:390:14: note: Assignment 's=(struct state*)malloc(sizeof(struct state))', assigned value is 0 colorize-release-1.1/src/colorize.c:396:24: note: Calling function 'initialize_state', 1st argument 's' value is 0 colorize-release-1.1/src/colorize.c:47:63: note: Assuming condition is false colorize-release-1.1/src/colorize.c:55:3: note: Null pointer dereference colorize-release-1.1/src/colorize.c:56:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] colorize-release-1.1/src/colorize.c:390:29: note: Assuming allocation function fails colorize-release-1.1/src/colorize.c:390:14: note: Assignment 's=(struct state*)malloc(sizeof(struct state))', assigned value is 0 colorize-release-1.1/src/colorize.c:396:24: note: Calling function 'initialize_state', 1st argument 's' value is 0 colorize-release-1.1/src/colorize.c:47:63: note: Assuming condition is false colorize-release-1.1/src/colorize.c:56:3: note: Null pointer dereference colorize-release-1.1/src/colorize.c:57:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] colorize-release-1.1/src/colorize.c:390:29: note: Assuming allocation function fails colorize-release-1.1/src/colorize.c:390:14: note: Assignment 's=(struct state*)malloc(sizeof(struct state))', assigned value is 0 colorize-release-1.1/src/colorize.c:396:24: note: Calling function 'initialize_state', 1st argument 's' value is 0 colorize-release-1.1/src/colorize.c:47:63: note: Assuming condition is false colorize-release-1.1/src/colorize.c:57:3: note: Null pointer dereference colorize-release-1.1/src/colorize.c:58:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] colorize-release-1.1/src/colorize.c:390:29: note: Assuming allocation function fails colorize-release-1.1/src/colorize.c:390:14: note: Assignment 's=(struct state*)malloc(sizeof(struct state))', assigned value is 0 colorize-release-1.1/src/colorize.c:396:24: note: Calling function 'initialize_state', 1st argument 's' value is 0 colorize-release-1.1/src/colorize.c:47:63: note: Assuming condition is false colorize-release-1.1/src/colorize.c:58:3: note: Null pointer dereference colorize-release-1.1/src/colorize.c:287:12: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] colorize-release-1.1/src/colorize.c:275:42: note: Assuming allocation function fails colorize-release-1.1/src/colorize.c:275:28: note: Assignment 'output=(char*)malloc(sizeof(char)*PATH_MAX)', assigned value is 0 colorize-release-1.1/src/colorize.c:280:28: note: Assuming condition is false colorize-release-1.1/src/colorize.c:287:12: note: Null pointer dereference colorize-release-1.1/src/colorize.c:275:14: style: Variable 'o2' can be declared as pointer to const [constVariablePointer] diff: DONE