2026-05-04 11:09 ftp://ftp.de.debian.org/debian/pool/main/p/python-easysnmp/python-easysnmp_0.2.6.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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 65 65 elapsed-time: 2.2 1.8 head-timing-info: old-timing-info: head results: easysnmp-0.2.6/easysnmp/interface.c:111:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usmHMACMD5AuthProtocol [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:252:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NETSNMP_LOGHANDLER_NONE [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:309:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TYPE_INTEGER [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:418:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TYPE_INTEGER [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:526:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable oid [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:855:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OID_LEN [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:1045:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OID_LEN [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:1209:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OID_LEN [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:1588:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_RuntimeError [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:1629:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_RuntimeError [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:1688:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNMP_VERSION_1 [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:1757:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNMP_VERSION_3 [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:1870:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:1979:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:2306:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OID_LEN [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:2671:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OID_LEN [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:3105:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OID_LEN [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:3435:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OID_LEN [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:3879:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable oid [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:4103:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_RuntimeError [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:4296:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ImportError [valueFlowBailoutIncompleteVar] easysnmp-0.2.6/easysnmp/interface.c:2923:30: style: Condition 'response' is always true [knownConditionTrueFalse] easysnmp-0.2.6/easysnmp/interface.c:3291:25: style: Condition 'response' is always true [knownConditionTrueFalse] easysnmp-0.2.6/easysnmp/interface.c:3680:29: style: Condition 'response' is always true [knownConditionTrueFalse] easysnmp-0.2.6/easysnmp/simple_bitarray.h:223:5: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] easysnmp-0.2.6/easysnmp/simple_bitarray.h:224:5: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] easysnmp-0.2.6/easysnmp/simple_bitarray.h:253:12: error: Return value of allocation function 'bitarray_alloc' is not stored. [leakReturnValNotUsed] easysnmp-0.2.6/easysnmp/simple_bitarray.h:254:12: error: Return value of allocation function 'bitarray_calloc' is not stored. [leakReturnValNotUsed] easysnmp-0.2.6/easysnmp/simple_bitarray.h:59:12: warning: Possible null pointer dereference: ba [nullPointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:249:30: note: Calling function 'bitarray_num_bits', 1st argument 'NULL' value is 0 easysnmp-0.2.6/easysnmp/simple_bitarray.h:59:12: note: Null pointer dereference easysnmp-0.2.6/easysnmp/simple_bitarray.h:69:5: warning: Possible null pointer dereference: ba [nullPointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:251:31: note: Calling function 'bitarray_clear_bit', 1st argument 'NULL' value is 0 easysnmp-0.2.6/easysnmp/simple_bitarray.h:69:5: note: Null pointer dereference easysnmp-0.2.6/easysnmp/simple_bitarray.h:74:5: warning: Possible null pointer dereference: ba [nullPointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:250:32: note: Calling function 'bitarray_change_bit', 1st argument 'NULL' value is 0 easysnmp-0.2.6/easysnmp/simple_bitarray.h:74:5: note: Null pointer dereference easysnmp-0.2.6/easysnmp/simple_bitarray.h:91:9: warning: Possible null pointer dereference: ba [nullPointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:252:32: note: Calling function 'bitarray_clear_bits', 1st argument 'NULL' value is 0 easysnmp-0.2.6/easysnmp/simple_bitarray.h:91:9: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:1068:5: warning: If memory allocation fails, then there is a possible null pointer dereference: vars [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:1050:47: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:1050:16: note: Assignment 'vars=(netsnmp_variable_list*)calloc(1,sizeof(netsnmp_variable_list))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:1068:5: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:1069:5: warning: If memory allocation fails, then there is a possible null pointer dereference: vars [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:1050:47: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:1050:16: note: Assignment 'vars=(netsnmp_variable_list*)calloc(1,sizeof(netsnmp_variable_list))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:1069:5: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:1070:5: warning: If memory allocation fails, then there is a possible null pointer dereference: vars [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:1050:47: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:1050:16: note: Assignment 'vars=(netsnmp_variable_list*)calloc(1,sizeof(netsnmp_variable_list))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:1070:5: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:2766:13: warning: If memory allocation fails, then there is a possible null pointer dereference: oid_arr [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:2761:25: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:2761:25: note: Assignment 'oid_arr=calloc(varlist_len,sizeof(oid*))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:2766:13: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:2767:13: warning: If memory allocation fails, then there is a possible null pointer dereference: oid_arr_broken_check [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:2762:38: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:2762:38: note: Assignment 'oid_arr_broken_check=calloc(varlist_len,sizeof(oid*))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:2767:13: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:2770:13: warning: If memory allocation fails, then there is a possible null pointer dereference: oid_arr_len [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:2758:29: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:2758:29: note: Assignment 'oid_arr_len=calloc(varlist_len,sizeof(int))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:2770:13: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:2771:13: warning: If memory allocation fails, then there is a possible null pointer dereference: oid_arr_broken_check_len [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:2759:42: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:2759:42: note: Assignment 'oid_arr_broken_check_len=calloc(varlist_len,sizeof(int))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:2771:13: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:2791:17: warning: If memory allocation fails, then there is a possible null pointer dereference: oid_arr_len [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:2758:29: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:2758:29: note: Assignment 'oid_arr_len=calloc(varlist_len,sizeof(int))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:2791:17: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:3534:13: warning: If memory allocation fails, then there is a possible null pointer dereference: oid_arr [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:3527:25: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:3527:25: note: Assignment 'oid_arr=calloc(varlist_len,sizeof(oid*))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:3534:13: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:3535:13: warning: If memory allocation fails, then there is a possible null pointer dereference: oid_arr_len [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:3526:29: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:3526:29: note: Assignment 'oid_arr_len=calloc(varlist_len,sizeof(int))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:3535:13: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:3572:18: warning: If memory allocation fails, then there is a possible null pointer dereference: oid_arr_len [nullPointerOutOfMemory] easysnmp-0.2.6/easysnmp/interface.c:3526:29: note: Assuming allocation function fails easysnmp-0.2.6/easysnmp/interface.c:3526:29: note: Assignment 'oid_arr_len=calloc(varlist_len,sizeof(int))', assigned value is 0 easysnmp-0.2.6/easysnmp/interface.c:3572:18: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:4013:37: warning: Either the condition 'val' is redundant or there is possible null pointer dereference: val. [nullPointerRedundantCheck] easysnmp-0.2.6/easysnmp/interface.c:4018:29: note: Assuming that condition 'val' is not redundant easysnmp-0.2.6/easysnmp/interface.c:4013:37: note: Null pointer dereference easysnmp-0.2.6/easysnmp/interface.c:1569:54: style:inconclusive: Function 'create_session_capsule' argument 1 names different: declaration 'ss' definition 'session'. [funcArgNamesDifferent] easysnmp-0.2.6/easysnmp/interface.h:106:54: note: Function 'create_session_capsule' argument 1 names different: declaration 'ss' definition 'session'. easysnmp-0.2.6/easysnmp/interface.c:1569:54: note: Function 'create_session_capsule' argument 1 names different: declaration 'ss' definition 'session'. easysnmp-0.2.6/easysnmp/interface.c:101:44: style: Parameter 'algo' can be declared as pointer to const [constParameterPointer] easysnmp-0.2.6/easysnmp/interface.c:285:35: style: Parameter 'tp' can be declared as pointer to const [constParameterPointer] easysnmp-0.2.6/easysnmp/interface.c:292:40: style: Parameter 'typestr' can be declared as pointer to const [constParameterPointer] easysnmp-0.2.6/easysnmp/interface.c:459:41: style: Parameter 'tp' can be declared as pointer to const [constParameterPointer] easysnmp-0.2.6/easysnmp/interface.c:462:13: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] easysnmp-0.2.6/easysnmp/interface.c:588:47: style: Parameter 'objid' can be declared as pointer to const [constParameterPointer] easysnmp-0.2.6/easysnmp/interface.c:602:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] easysnmp-0.2.6/easysnmp/interface.c:1010:69: style: Parameter 'soid_str' can be declared as pointer to const [constParameterPointer] easysnmp-0.2.6/easysnmp/interface.c:1013:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] easysnmp-0.2.6/easysnmp/interface.c:1389:59: style: Parameter 'ss' can be declared as pointer to const [constParameterPointer] easysnmp-0.2.6/easysnmp/interface.c:3873:18: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] easysnmp-0.2.6/easysnmp/interface.c:3884:23: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:52:51: style: Parameter 'ba' can be declared as pointer to const [constParameterPointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:57:50: style: Parameter 'ba' can be declared as pointer to const [constParameterPointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:122:27: warning: Uninitialized variable: nbytes [uninitvar] easysnmp-0.2.6/easysnmp/simple_bitarray.h:106:30: note: Assuming condition is false easysnmp-0.2.6/easysnmp/simple_bitarray.h:122:27: note: Uninitialized variable: nbytes easysnmp-0.2.6/easysnmp/simple_bitarray.h:59:12: error: Null pointer dereference: ba [ctunullpointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:249:29: note: Calling function bitarray_num_bits, 1st argument is null easysnmp-0.2.6/easysnmp/simple_bitarray.h:59:12: note: Dereferencing argument ba that is null easysnmp-0.2.6/easysnmp/simple_bitarray.h:64:5: error: Null pointer dereference: ba [ctunullpointer] easysnmp-0.2.6/easysnmp/interface.c:3233:37: note: Calling function __send_sync_pdu, 8th argument is null easysnmp-0.2.6/easysnmp/interface.c:1265:21: note: Calling function bitarray_set_bit, 1st argument is null easysnmp-0.2.6/easysnmp/simple_bitarray.h:64:5: note: Dereferencing argument ba that is null easysnmp-0.2.6/easysnmp/simple_bitarray.h:69:5: error: Null pointer dereference: ba [ctunullpointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:251:30: note: Calling function bitarray_clear_bit, 1st argument is null easysnmp-0.2.6/easysnmp/simple_bitarray.h:69:5: note: Dereferencing argument ba that is null easysnmp-0.2.6/easysnmp/simple_bitarray.h:74:5: error: Null pointer dereference: ba [ctunullpointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:250:31: note: Calling function bitarray_change_bit, 1st argument is null easysnmp-0.2.6/easysnmp/simple_bitarray.h:74:5: note: Dereferencing argument ba that is null easysnmp-0.2.6/easysnmp/simple_bitarray.h:91:9: error: Null pointer dereference: ba [ctunullpointer] easysnmp-0.2.6/easysnmp/simple_bitarray.h:252:31: note: Calling function bitarray_clear_bits, 1st argument is null easysnmp-0.2.6/easysnmp/simple_bitarray.h:91:9: note: Dereferencing argument ba that is null diff: DONE