2025-06-27 13:20 ftp://ftp.de.debian.org/debian/pool/main/g/geekcode/geekcode_1.7.3.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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: b6dd286 (2025-06-27 13:53:34 +0200) count: 12 12 elapsed-time: 0.7 0.7 head-timing-info: old-timing-info: head results: geekcode-1.7.3.orig/gc_lifestyle.c:191:10: style: Variable 'sex' can be declared as pointer to const [constVariablePointer] geekcode-1.7.3.orig/gc_lifestyle.c:207:10: style: Variable 'sex' can be declared as pointer to const [constVariablePointer] geekcode-1.7.3.orig/gc_computers.c:111:10: style: Variable 'unix_type' can be declared as pointer to const [constVariablePointer] geekcode-1.7.3.orig/geekcode.c:56:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] geekcode-1.7.3.orig/geekcode.c:188:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] geekcode-1.7.3.orig/geekcode.c:95:38: style: Condition 'readgeek(geekcode,data,&j,&k)!=0' is always false [knownConditionTrueFalse] geekcode-1.7.3.orig/geekcode.c:95:16: note: Calling function 'readgeek' returns 0 geekcode-1.7.3.orig/geekcode.c:95:38: note: Condition 'readgeek(geekcode,data,&j,&k)!=0' is always false geekcode-1.7.3.orig/geekcode.c:716:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fcode [nullPointerOutOfResources] geekcode-1.7.3.orig/geekcode.c:714:17: note: Assuming allocation function fails geekcode-1.7.3.orig/geekcode.c:714:17: note: Assignment 'fcode=fopen("geekcode.sig","w")', assigned value is 0 geekcode-1.7.3.orig/geekcode.c:716:12: note: Null pointer dereference geekcode-1.7.3.orig/geekcode.c:717:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fcode [nullPointerOutOfResources] geekcode-1.7.3.orig/geekcode.c:714:17: note: Assuming allocation function fails geekcode-1.7.3.orig/geekcode.c:714:17: note: Assignment 'fcode=fopen("geekcode.sig","w")', assigned value is 0 geekcode-1.7.3.orig/geekcode.c:717:12: note: Null pointer dereference geekcode-1.7.3.orig/geekcode.c:27:42: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] geekcode-1.7.3.orig/geekcode.c:193:10: style: Variable 'sex_type' can be declared as pointer to const [constVariablePointer] geekcode-1.7.3.orig/geekcode.c:711:10: style: Variable 'sex_type' can be declared as pointer to const [constVariablePointer] geekcode-1.7.3.orig/gc_translate.c:6:19: style: Parameter 'sexcode' can be declared as const array [constParameter] diff: DONE