2025-12-16 23:43 ftp://ftp.de.debian.org/debian/pool/main/p/python-pkcs11/python-pkcs11_0.9.3.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --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-90-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: c9c660e (2025-12-16 13:10:32 +0100) count: 4 4 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: python-pkcs11-0.9.3/extern/load_module.c:63:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] python-pkcs11-0.9.3/extern/load_module.c:90:5: error: Resource leak: handle [resourceLeak] python-pkcs11-0.9.3/extern/load_module.c:86:14: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] python-pkcs11-0.9.3/extern/load_module.c:85:49: note: Assuming allocation function fails python-pkcs11-0.9.3/extern/load_module.c:85:23: note: Assignment 'result=(struct P11_HANDLE*)PyMem_Malloc(sizeof(struct P11_HANDLE))', assigned value is 0 python-pkcs11-0.9.3/extern/load_module.c:86:14: note: Null pointer dereference python-pkcs11-0.9.3/extern/load_module.c:87:14: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] python-pkcs11-0.9.3/extern/load_module.c:85:49: note: Assuming allocation function fails python-pkcs11-0.9.3/extern/load_module.c:85:23: note: Assignment 'result=(struct P11_HANDLE*)PyMem_Malloc(sizeof(struct P11_HANDLE))', assigned value is 0 python-pkcs11-0.9.3/extern/load_module.c:87:14: note: Null pointer dereference diff: DONE