2025-05-07 07:43 ftp://ftp.de.debian.org/debian/pool/main/p/python-yenc/python-yenc_0.4.0.orig.tar.gz 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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 8e656e5 (2025-05-06 23:42:00 +0200) count: 10 10 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: yenc-0.4.0/src/_yenc.c:117:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] yenc-0.4.0/src/_yenc.c:123:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] yenc-0.4.0/src/_yenc.c:201:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyFile_Type [valueFlowBailoutIncompleteVar] yenc-0.4.0/src/_yenc.c:297:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyString_Type [valueFlowBailoutIncompleteVar] yenc-0.4.0/src/_yenc.c:338:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyFile_Type [valueFlowBailoutIncompleteVar] yenc-0.4.0/src/_yenc.c:397:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyString_Type [valueFlowBailoutIncompleteVar] yenc-0.4.0/src/_yenc.c:267:3: warning: If memory allocation fails, then there is a possible null pointer dereference: output_buffer [nullPointerOutOfMemory] yenc-0.4.0/src/_yenc.c:406:32: note: Assuming allocation function fails yenc-0.4.0/src/_yenc.c:406:18: note: Assignment 'output_buffer=(unsigned char*)malloc(input_len)', assigned value is 0 yenc-0.4.0/src/_yenc.c:407:43: note: Calling function 'decode_buffer', 2nd argument 'output_buffer' value is 0 yenc-0.4.0/src/_yenc.c:267:3: note: Null pointer dereference yenc-0.4.0/src/_yenc.c:131:9: style: Parameter 'input_buffer' can be declared as pointer to const [constParameterPointer] yenc-0.4.0/src/_yenc.c:242:9: style: Parameter 'input_buffer' can be declared as pointer to const [constParameterPointer] yenc-0.4.0/src/_yenc.c:138:7: style: Variable 'encoded' is not assigned a value. [unassignedVariable] diff: DONE