2025-10-30 03:17 ftp://ftp.de.debian.org/debian/pool/main/g/golang-github-keybase-go-ps/golang-github-keybase-go-ps_0.0~git20190827.91aafc9.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 -j1 platform: Linux-6.8.0-86-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 44b2b45 (2025-10-29 21:13:17 +0100) count: 7 7 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: go-ps/darwincgo/process_darwin.c:48:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kinfo_proc [valueFlowBailoutIncompleteVar] go-ps/darwincgo/process_darwin.c:70:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROC_ALL_PIDS [valueFlowBailoutIncompleteVar] go-ps/darwincgo/process_darwin.c:74:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] go-ps/darwincgo/process_darwin.c:81:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] go-ps/darwincgo/process_darwin.c:74:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pids [nullPointerOutOfMemory] go-ps/darwincgo/process_darwin.c:73:23: note: Assuming allocation function fails go-ps/darwincgo/process_darwin.c:73:23: note: Assignment 'pids=malloc(pid_buf_size)', assigned value is 0 go-ps/darwincgo/process_darwin.c:74:9: note: Null pointer dereference go-ps/darwincgo/process_darwin.c:80:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pids [nullPointerOutOfMemory] go-ps/darwincgo/process_darwin.c:73:23: note: Assuming allocation function fails go-ps/darwincgo/process_darwin.c:73:23: note: Assignment 'pids=malloc(pid_buf_size)', assigned value is 0 go-ps/darwincgo/process_darwin.c:80:9: note: Null pointer dereference go-ps/darwincgo/process_darwin.c:82:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pids [nullPointerOutOfMemory] go-ps/darwincgo/process_darwin.c:73:23: note: Assuming allocation function fails go-ps/darwincgo/process_darwin.c:73:23: note: Assignment 'pids=malloc(pid_buf_size)', assigned value is 0 go-ps/darwincgo/process_darwin.c:80:17: note: Assuming condition is false go-ps/darwincgo/process_darwin.c:82:22: note: Null pointer dereference diff: DONE