2025-11-21 21:04 ftp://ftp.de.debian.org/debian/pool/main/i/ikiwiki-hosting/ikiwiki-hosting_0.20220717.orig.tar.xz 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: 602da94 (2025-11-21 17:16:29 +0100) count: 14 14 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: ikiwiki-hosting-0.20220717/iki-git-hook-update.c:21:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ikiwiki-hosting-0.20220717/ikisite-wrapper.c:44:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ikiwiki-hosting-0.20220717/iki-git-shell.c:37:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ikiwiki-hosting-0.20220717/iki-git-shell.c:55:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ikiwiki-hosting-0.20220717/iki-git-hook-update.c:18:8: style: Variable 'untrusted' can be declared as pointer to const [constVariablePointer] ikiwiki-hosting-0.20220717/iki-git-shell.c:53:9: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] ikiwiki-hosting-0.20220717/iki-git-shell.c:78:4: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ikiwiki-hosting-0.20220717/iki-git-shell.c:96:4: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ikiwiki-hosting-0.20220717/iki-git-shell.c:107:16: error: Memory leak: subcommand [memleak] ikiwiki-hosting-0.20220717/iki-git-shell.c:36:16: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] ikiwiki-hosting-0.20220717/iki-git-shell.c:35:19: note: Assuming allocation function fails ikiwiki-hosting-0.20220717/iki-git-shell.c:35:19: note: Assignment 'buf=malloc(bufsize)', assigned value is 0 ikiwiki-hosting-0.20220717/iki-git-shell.c:36:16: note: Null pointer dereference ikiwiki-hosting-0.20220717/iki-git-shell.c:100:38: warning: Either the condition '!s' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] ikiwiki-hosting-0.20220717/iki-git-shell.c:97:6: note: Assuming that condition '!s' is not redundant ikiwiki-hosting-0.20220717/iki-git-shell.c:100:38: note: Null pointer dereference ikiwiki-hosting-0.20220717/iki-git-shell.c:50:38: style: Variable 's' can be declared as pointer to const [constVariablePointer] ikiwiki-hosting-0.20220717/iki-git-shell.c:51:17: style: Variable 'passwd' can be declared as pointer to const [constVariablePointer] ikiwiki-hosting-0.20220717/ikisite-wrapper.c:27:8: style: Variable 'nonce' can be declared as pointer to const [constVariablePointer] diff: DONE