2025-09-13 04:46 ftp://ftp.de.debian.org/debian/pool/main/h/haskell-postgresql-libpq/haskell-postgresql-libpq_0.10.0.0.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 -j1 platform: Linux-6.8.0-79-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: 411a3a7 (2025-09-12 16:54:23 +0200) count: 4 4 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:15:3: warning: If memory allocation fails, then there is a possible null pointer dereference: notice [nullPointerOutOfMemory] postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:14:39: note: Assuming allocation function fails postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:14:22: note: Assignment 'notice=(struct PGnotice*)malloc(sizeof(struct PGnotice)+sizeof(char)*(len+1))', assigned value is 0 postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:15:3: note: Null pointer dereference postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:16:3: warning: If memory allocation fails, then there is a possible null pointer dereference: notice [nullPointerOutOfMemory] postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:14:39: note: Assuming allocation function fails postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:14:22: note: Assignment 'notice=(struct PGnotice*)malloc(sizeof(struct PGnotice)+sizeof(char)*(len+1))', assigned value is 0 postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:16:3: note: Null pointer dereference postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:17:10: warning: If memory allocation fails, then there is a possible null pointer dereference: notice [nullPointerOutOfMemory] postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:14:39: note: Assuming allocation function fails postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:14:22: note: Assignment 'notice=(struct PGnotice*)malloc(sizeof(struct PGnotice)+sizeof(char)*(len+1))', assigned value is 0 postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:17:10: note: Null pointer dereference postgresql-libpq-0.10.0.0/cbits/noticehandlers.c:4:51: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] diff: DONE