2025-11-06 16:08 ftp://ftp.de.debian.org/debian/pool/main/libw/libwhereami/libwhereami_0.0~git20240826.dcb52a0.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.48+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: 2c5b872 (2025-11-06 13:42:16 +0200) count: 13 13 elapsed-time: 0.0 0.0 head-timing-info: old-timing-info: head results: libwhereami-0.0~git20240826.dcb52a0/src/whereami.c:809:0: error: #error unsupported platform [preprocessorErrorDirective] libwhereami-0.0~git20240826.dcb52a0/src/whereami.c:809:2: error: #error unsupported platform [preprocessorErrorDirective] libwhereami-0.0~git20240826.dcb52a0/example/library.c:21:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] libwhereami-0.0~git20240826.dcb52a0/example/library.c:19:25: note: Assuming allocation function fails libwhereami-0.0~git20240826.dcb52a0/example/library.c:19:12: note: Assignment 'path=(char*)malloc(length+1)', assigned value is 0 libwhereami-0.0~git20240826.dcb52a0/example/library.c:21:5: note: Null pointer dereference libwhereami-0.0~git20240826.dcb52a0/example/library.c:23:37: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] libwhereami-0.0~git20240826.dcb52a0/example/library.c:19:25: note: Assuming allocation function fails libwhereami-0.0~git20240826.dcb52a0/example/library.c:19:12: note: Assignment 'path=(char*)malloc(length+1)', assigned value is 0 libwhereami-0.0~git20240826.dcb52a0/example/library.c:23:37: note: Null pointer dereference libwhereami-0.0~git20240826.dcb52a0/example/library.c:24:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] libwhereami-0.0~git20240826.dcb52a0/example/library.c:19:25: note: Assuming allocation function fails libwhereami-0.0~git20240826.dcb52a0/example/library.c:19:12: note: Assignment 'path=(char*)malloc(length+1)', assigned value is 0 libwhereami-0.0~git20240826.dcb52a0/example/library.c:24:5: note: Null pointer dereference libwhereami-0.0~git20240826.dcb52a0/example/library.c:25:31: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] libwhereami-0.0~git20240826.dcb52a0/example/library.c:19:25: note: Assuming allocation function fails libwhereami-0.0~git20240826.dcb52a0/example/library.c:19:12: note: Assignment 'path=(char*)malloc(length+1)', assigned value is 0 libwhereami-0.0~git20240826.dcb52a0/example/library.c:25:31: note: Null pointer dereference libwhereami-0.0~git20240826.dcb52a0/example/library.c:35:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] libwhereami-0.0~git20240826.dcb52a0/example/library.c:33:25: note: Assuming allocation function fails libwhereami-0.0~git20240826.dcb52a0/example/library.c:33:12: note: Assignment 'path=(char*)malloc(length+1)', assigned value is 0 libwhereami-0.0~git20240826.dcb52a0/example/library.c:35:5: note: Null pointer dereference libwhereami-0.0~git20240826.dcb52a0/example/library.c:37:33: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] libwhereami-0.0~git20240826.dcb52a0/example/library.c:33:25: note: Assuming allocation function fails libwhereami-0.0~git20240826.dcb52a0/example/library.c:33:12: note: Assignment 'path=(char*)malloc(length+1)', assigned value is 0 libwhereami-0.0~git20240826.dcb52a0/example/library.c:37:33: note: Null pointer dereference libwhereami-0.0~git20240826.dcb52a0/example/library.c:38:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] libwhereami-0.0~git20240826.dcb52a0/example/library.c:33:25: note: Assuming allocation function fails libwhereami-0.0~git20240826.dcb52a0/example/library.c:33:12: note: Assignment 'path=(char*)malloc(length+1)', assigned value is 0 libwhereami-0.0~git20240826.dcb52a0/example/library.c:38:5: note: Null pointer dereference libwhereami-0.0~git20240826.dcb52a0/example/library.c:39:31: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] libwhereami-0.0~git20240826.dcb52a0/example/library.c:33:25: note: Assuming allocation function fails libwhereami-0.0~git20240826.dcb52a0/example/library.c:33:12: note: Assignment 'path=(char*)malloc(length+1)', assigned value is 0 libwhereami-0.0~git20240826.dcb52a0/example/library.c:39:31: note: Null pointer dereference libwhereami-0.0~git20240826.dcb52a0/example/library.c:26:37: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libwhereami-0.0~git20240826.dcb52a0/example/library.c:19:25: note: Assuming allocation function fails libwhereami-0.0~git20240826.dcb52a0/example/library.c:19:12: note: Assignment 'path=(char*)malloc(length+1)', assigned value is 0 libwhereami-0.0~git20240826.dcb52a0/example/library.c:26:37: note: Null pointer addition libwhereami-0.0~git20240826.dcb52a0/example/library.c:40:37: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libwhereami-0.0~git20240826.dcb52a0/example/library.c:33:25: note: Assuming allocation function fails libwhereami-0.0~git20240826.dcb52a0/example/library.c:33:12: note: Assignment 'path=(char*)malloc(length+1)', assigned value is 0 libwhereami-0.0~git20240826.dcb52a0/example/library.c:40:37: note: Null pointer addition libwhereami-0.0~git20240826.dcb52a0/example/executable.c:111:13: style: Variable 'name' can be declared as pointer to const [constVariablePointer] diff: DONE