2025-11-24 02:22 ftp://ftp.de.debian.org/debian/pool/main/s/smem/smem_1.5.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-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 3 3 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: smem-1.5/smemcap.c:58:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] smem-1.5/smemcap.c:65:16: warning: If memory allocation fails, then there is a possible null pointer dereference: cur [nullPointerOutOfMemory] smem-1.5/smemcap.c:62:15: note: Assuming allocation function fails smem-1.5/smemcap.c:62:15: note: Assignment 'cur=calloc(1,sizeof(struct fileblock))', assigned value is 0 smem-1.5/smemcap.c:65:16: note: Null pointer dereference smem-1.5/smemcap.c:103:23: warning: If resource allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfResources] smem-1.5/smemcap.c:102:13: note: Assuming allocation function fails smem-1.5/smemcap.c:102:13: note: Assignment 'd=opendir(".")', assigned value is 0 smem-1.5/smemcap.c:103:23: note: Null pointer dereference diff: DONE