2025-12-26 18:37 ftp://ftp.de.debian.org/debian/pool/main/b/binfmtc/binfmtc_0.17.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 -j90 platform: Linux-6.8.0-90-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.19.0 head-info: a5ec929 (2025-12-24 09:21:38 +0100) count: 46 46 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: binfmtc-0.17/tests/cxxprint.cxx:8:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] binfmtc-0.17/binfmtc-interpreter.c:55:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] binfmtc-0.17/binfmtc-interpreter.c:165:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] binfmtc-0.17/binfmtc-interpreter.c:203:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] binfmtc-0.17/realcxxsh.cc:64:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] binfmtc-0.17/upaccho2/upaccho2.c:62:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] binfmtc-0.17/upaccho2/upaccho2.c:90:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] binfmtc-0.17/realksh.c:113:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] binfmtc-0.17/realksh.c:165:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] binfmtc-0.17/upaccho2/upaccho2-webservice.c:190:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] binfmtc-0.17/realcsh.c:41:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] binfmtc-0.17/realcsh.c:40:19: note: Assuming allocation function fails binfmtc-0.17/realcsh.c:40:19: note: Assignment 't=malloc(sizeof(struct defs_list))', assigned value is 0 binfmtc-0.17/realcsh.c:41:3: note: Null pointer dereference binfmtc-0.17/realcsh.c:42:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] binfmtc-0.17/realcsh.c:40:19: note: Assuming allocation function fails binfmtc-0.17/realcsh.c:40:19: note: Assignment 't=malloc(sizeof(struct defs_list))', assigned value is 0 binfmtc-0.17/realcsh.c:42:3: note: Null pointer dereference binfmtc-0.17/realcsh.c:105:15: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realcsh.c:102:17: note: Assuming allocation function fails binfmtc-0.17/realcsh.c:102:17: note: Assignment 'f=fdopen(fd=mkstemp(tempfilename),"w")', assigned value is 0 binfmtc-0.17/realcsh.c:105:15: note: Null pointer dereference binfmtc-0.17/realcsh.c:109:12: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realcsh.c:102:17: note: Assuming allocation function fails binfmtc-0.17/realcsh.c:102:17: note: Assignment 'f=fdopen(fd=mkstemp(tempfilename),"w")', assigned value is 0 binfmtc-0.17/realcsh.c:109:12: note: Null pointer dereference binfmtc-0.17/binfmtc-interpreter.c:58:7: error: Memory leak: path [memleak] binfmtc-0.17/realcsh.c:112:15: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realcsh.c:102:17: note: Assuming allocation function fails binfmtc-0.17/realcsh.c:102:17: note: Assignment 'f=fdopen(fd=mkstemp(tempfilename),"w")', assigned value is 0 binfmtc-0.17/realcsh.c:112:15: note: Null pointer dereference binfmtc-0.17/binfmtc-interpreter.c:58:7: error: Memory leak: tempfilename [memleak] binfmtc-0.17/realcsh.c:116:12: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realcsh.c:102:17: note: Assuming allocation function fails binfmtc-0.17/realcsh.c:102:17: note: Assignment 'f=fdopen(fd=mkstemp(tempfilename),"w")', assigned value is 0 binfmtc-0.17/realcsh.c:116:12: note: Null pointer dereference binfmtc-0.17/binfmtc-interpreter.c:69:7: error: Memory leak: path [memleak] binfmtc-0.17/realcsh.c:118:15: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realcsh.c:102:17: note: Assuming allocation function fails binfmtc-0.17/realcsh.c:102:17: note: Assignment 'f=fdopen(fd=mkstemp(tempfilename),"w")', assigned value is 0 binfmtc-0.17/realcsh.c:118:15: note: Null pointer dereference binfmtc-0.17/binfmtc-interpreter.c:69:7: error: Memory leak: tempfilename [memleak] binfmtc-0.17/realcsh.c:125:15: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realcsh.c:102:17: note: Assuming allocation function fails binfmtc-0.17/realcsh.c:102:17: note: Assignment 'f=fdopen(fd=mkstemp(tempfilename),"w")', assigned value is 0 binfmtc-0.17/realcsh.c:125:15: note: Null pointer dereference binfmtc-0.17/binfmtc-interpreter.c:78:7: error: Memory leak: path [memleak] binfmtc-0.17/binfmtc-interpreter.c:78:7: error: Memory leak: tempfilename [memleak] binfmtc-0.17/binfmtc-interpreter.c:78:7: error: Memory leak: s [memleak] binfmtc-0.17/binfmtc-interpreter.c:78:7: error: Resource leak: f [resourceLeak] binfmtc-0.17/binfmtc-interpreter.c:89:7: error: Memory leak: path [memleak] binfmtc-0.17/binfmtc-interpreter.c:89:7: error: Memory leak: tempfilename [memleak] binfmtc-0.17/binfmtc-interpreter.c:89:7: error: Memory leak: s [memleak] binfmtc-0.17/binfmtc-interpreter.c:89:7: error: Resource leak: f [resourceLeak] binfmtc-0.17/binfmtc-interpreter.c:53:37: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] binfmtc-0.17/binfmtc-interpreter.c:37:23: note: Assuming allocation function fails binfmtc-0.17/binfmtc-interpreter.c:37:23: note: Assignment 'path=strdup(sourcename)', assigned value is 0 binfmtc-0.17/binfmtc-interpreter.c:53:37: note: Null pointer dereference binfmtc-0.17/binfmtc-interpreter.c:198:9: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] binfmtc-0.17/upaccho2/upaccho2-webservice.c:188:13: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] binfmtc-0.17/upaccho2/upaccho2-webservice.c:56:3: portability: %i in format string (no. 3) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] binfmtc-0.17/upaccho2/upaccho2-webservice.c:160:15: warning: %a in format string (no. 1) requires 'float *' but the argument type is 'char *'. [invalidScanfArgType_float] binfmtc-0.17/upaccho2/upaccho2-webservice.c:160:15: warning: %a in format string (no. 2) requires 'float *' but the argument type is 'char *'. [invalidScanfArgType_float] binfmtc-0.17/upaccho2/upaccho2-webservice.c:107:5: error: Memory leak: u [memleak] binfmtc-0.17/realksh.c:171:7: error: Memory leak: tempdirname [memleak] binfmtc-0.17/realksh.c:61:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] binfmtc-0.17/realksh.c:60:19: note: Assuming allocation function fails binfmtc-0.17/realksh.c:60:19: note: Assignment 't=malloc(sizeof(struct defs_list))', assigned value is 0 binfmtc-0.17/realksh.c:61:3: note: Null pointer dereference binfmtc-0.17/realksh.c:62:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] binfmtc-0.17/realksh.c:60:19: note: Assuming allocation function fails binfmtc-0.17/realksh.c:60:19: note: Assignment 't=malloc(sizeof(struct defs_list))', assigned value is 0 binfmtc-0.17/realksh.c:62:3: note: Null pointer dereference binfmtc-0.17/realksh.c:180:11: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realksh.c:179:11: note: Assuming allocation function fails binfmtc-0.17/realksh.c:179:11: note: Assignment 'f=fopen(kbuildfilename,"w")', assigned value is 0 binfmtc-0.17/realksh.c:180:11: note: Null pointer dereference binfmtc-0.17/realksh.c:184:10: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realksh.c:179:11: note: Assuming allocation function fails binfmtc-0.17/realksh.c:179:11: note: Assignment 'f=fopen(kbuildfilename,"w")', assigned value is 0 binfmtc-0.17/realksh.c:184:10: note: Null pointer dereference binfmtc-0.17/realksh.c:240:12: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realksh.c:237:14: note: Assuming allocation function fails binfmtc-0.17/realksh.c:237:14: note: Assignment 'f=fopen(tempfilename,"w")', assigned value is 0 binfmtc-0.17/realksh.c:240:12: note: Null pointer dereference binfmtc-0.17/realksh.c:242:15: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realksh.c:237:14: note: Assuming allocation function fails binfmtc-0.17/realksh.c:237:14: note: Assignment 'f=fopen(tempfilename,"w")', assigned value is 0 binfmtc-0.17/realksh.c:242:15: note: Null pointer dereference binfmtc-0.17/realksh.c:265:15: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] binfmtc-0.17/realksh.c:237:14: note: Assuming allocation function fails binfmtc-0.17/realksh.c:237:14: note: Assignment 'f=fopen(tempfilename,"w")', assigned value is 0 binfmtc-0.17/realksh.c:265:15: note: Null pointer dereference binfmtc-0.17/realksh.c:126:10: style: Variable 'kerneldirname' can be declared as pointer to const [constVariablePointer] diff: DONE