2025-11-25 06:01 ftp://ftp.de.debian.org/debian/pool/main/b/braa/braa_0.82.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 -j4 platform: Linux-6.12.57+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: cb76e52 (2025-11-22 14:47:37 +0100) count: 197 197 elapsed-time: 0.5 0.6 head-timing-info: old-timing-info: head results: braa-0.82/arch/braaatest.c:14:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int32_t [valueFlowBailoutIncompleteVar] braa-0.82/arch/braaatest.c:15:9: warning: If memory allocation fails, then there is a possible null pointer dereference: myoid [nullPointerOutOfMemory] braa-0.82/arch/braaatest.c:14:16: note: Assuming allocation function fails braa-0.82/arch/braaatest.c:14:16: note: Assignment 'myoid=malloc(sizeof(u_int32_t)*9)', assigned value is 0 braa-0.82/arch/braaatest.c:15:9: note: Null pointer dereference braa-0.82/arch/braaatest.c:11:12: style: Variable 'oid' can be declared as const array [constVariable] braa-0.82/arch/braaatest_primitive.c:27:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BRAAASN_INTEGER [valueFlowBailoutIncompleteVar] braa-0.82/arch/braautil.c:10:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int32_t [valueFlowBailoutIncompleteVar] braa-0.82/arch/braautil.c:11:9: warning: If memory allocation fails, then there is a possible null pointer dereference: oid [nullPointerOutOfMemory] braa-0.82/arch/braautil.c:10:33: note: Assuming allocation function fails braa-0.82/arch/braautil.c:10:20: note: Assignment 'oid=(u_int32_t*)malloc(l*sizeof(u_int32_t))', assigned value is 0 braa-0.82/arch/braautil.c:11:9: note: Null pointer dereference braa-0.82/arch/braautil.c:8:32: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] braa-0.82/arch/braa.c:70:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] braa-0.82/arch/braa.c:172:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] braa-0.82/arch/queries.c:566:6: error: syntax error [syntaxError] braa-0.82/arch/braaclientnet.c:65:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BRAAASN_OID [valueFlowBailoutIncompleteVar] braa-0.82/braa.c:75:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] braa-0.82/braaasn.h:58:13: warning: Assert statement modifies 'ret'. [assignmentInAssert] braa-0.82/braaasn.h:58:40: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/braa.c:123:14: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/braa.c:181:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] braa-0.82/braa.c:121:12: style: Local variable 'r' shadows outer variable [shadowVariable] braa-0.82/braa.c:69:6: note: Shadowed declaration braa-0.82/braa.c:121:12: note: Shadow variable braa-0.82/braaasn.c:238:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] braa-0.82/braaasn.c:570:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] braa-0.82/arch/braa.c:50:10: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/arch/braa.c:56:10: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/arch/braa.c:63:13: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/arch/braa.c:87:11: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/arch/braa.c:107:10: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/arch/braa.c:222:16: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/arch/braa.c:12:2: warning: printf format string requires 0 parameters but 1 is given. [wrongPrintfScanfArgNum] braa-0.82/arch/braa.c:138:3: error: Memory leak: community [memleak] braa-0.82/arch/braa.c:50:16: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braa.c:48:18: note: Assuming allocation function fails braa-0.82/arch/braa.c:48:10: note: Assignment 'q=mem=strdup(q)', assigned value is 0 braa-0.82/arch/braa.c:50:16: note: Null pointer dereference braa-0.82/arch/braa.c:56:16: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braa.c:48:18: note: Assuming allocation function fails braa-0.82/arch/braa.c:48:10: note: Assignment 'q=mem=strdup(q)', assigned value is 0 braa-0.82/arch/braa.c:50:8: note: Assuming condition is false braa-0.82/arch/braa.c:56:16: note: Null pointer dereference braa-0.82/braaoids.c:11:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int32_t [valueFlowBailoutIncompleteVar] braa-0.82/braaoids.c:72:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int32_t [valueFlowBailoutIncompleteVar] braa-0.82/braaoids.c:100:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int32_t [valueFlowBailoutIncompleteVar] braa-0.82/braaoids.c:111:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int32_t [valueFlowBailoutIncompleteVar] braa-0.82/braaoids.c:118:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int32_t [valueFlowBailoutIncompleteVar] braa-0.82/arch/braa.c:10:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] braa-0.82/arch/braa.c:32:18: style: Variable 'host' can be declared as pointer to const [constVariablePointer] braa-0.82/arch/braa.c:38:18: style: Variable 'orig' can be declared as pointer to const [constVariablePointer] braa-0.82/arch/braa.c:109:19: style: Variable 'sendhost' can be declared as pointer to const [constVariablePointer] braa-0.82/arch/braa.c:46:6: style: Unused variable: i [unusedVariable] braa-0.82/braaoids.c:50:11: warning: Assert statement modifies 'n'. [assignmentInAssert] braa-0.82/braaoids.c:50:20: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/braaoids.c:100:11: warning: Assert statement modifies 'n'. [assignmentInAssert] braa-0.82/braaoids.c:100:20: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/braaoids.c:72:6: error: Common realloc mistake: 'n' nulled but not freed upon failure [memleakOnRealloc] braa-0.82/braaoids.c:13:2: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] braa-0.82/braaoids.c:11:19: note: Assuming allocation function fails braa-0.82/braaoids.c:11:12: note: Assignment 'n=(struct oid*)malloc(o->len*sizeof(u_int32_t)+sizeof(struct oid))', assigned value is 0 braa-0.82/braaoids.c:13:2: note: Null pointer dereference braa-0.82/braaoids.c:14:2: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] braa-0.82/braaoids.c:11:19: note: Assuming allocation function fails braa-0.82/braaoids.c:11:12: note: Assignment 'n=(struct oid*)malloc(o->len*sizeof(u_int32_t)+sizeof(struct oid))', assigned value is 0 braa-0.82/braaoids.c:14:2: note: Null pointer dereference braa-0.82/braaoids.c:16:9: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] braa-0.82/braaoids.c:11:19: note: Assuming allocation function fails braa-0.82/braaoids.c:11:12: note: Assignment 'n=(struct oid*)malloc(o->len*sizeof(u_int32_t)+sizeof(struct oid))', assigned value is 0 braa-0.82/braaoids.c:16:9: note: Null pointer dereference braa-0.82/braaoids.c:13:27: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] braa-0.82/braaoids.c:11:19: note: Assuming allocation function fails braa-0.82/braaoids.c:11:12: note: Assignment 'n=(struct oid*)malloc(o->len*sizeof(u_int32_t)+sizeof(struct oid))', assigned value is 0 braa-0.82/braaoids.c:13:27: note: Null pointer addition braa-0.82/braaoids.c:115:28: style:inconclusive: Function 'braa_OID_CompareN' argument 1 names different: declaration 'a' definition 'shorter'. [funcArgNamesDifferent] braa-0.82/braaoids.h:16:28: note: Function 'braa_OID_CompareN' argument 1 names different: declaration 'a' definition 'shorter'. braa-0.82/braaoids.c:115:28: note: Function 'braa_OID_CompareN' argument 1 names different: declaration 'a' definition 'shorter'. braa-0.82/braaoids.c:9:32: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] braa-0.82/braaoids.c:25:30: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] braa-0.82/braaoids.c:45:48: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] braa-0.82/braaoids.c:97:43: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] braa-0.82/braaoids.c:108:27: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] braa-0.82/braaoids.c:108:35: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] braa-0.82/braaoids.c:115:28: style: Parameter 'shorter' can be declared as pointer to const [constParameterPointer] braa-0.82/braaoids.c:115:42: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] braa-0.82/braaoids.c:37:28: error: Undefined behavior: Variable 'buffer' is used as parameter and destination in sprintf(). [sprintfOverlappingData] braa-0.82/braaoids.c:57:19: style: Variable 'digit' is assigned a value that is never used. [unreadVariable] braa-0.82/braaprotocol.c:27:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ldata [valueFlowBailoutIncompleteVar] braa-0.82/braaprotocol.c:50:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] braa-0.82/braaprotocol.c:73:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] braa-0.82/braaprotocol.c:148:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] braa-0.82/braaprotocol.c:159:88: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] braa-0.82/braaprotocol.c:166:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] braa-0.82/braaprotocol.c:175:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] braa-0.82/braaprotocol.c:181:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] braa-0.82/braaprotocol.c:188:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] braa-0.82/braaprotocol.c:195:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pdata [valueFlowBailoutIncompleteVar] braa-0.82/braaprotocol.c:14:14: warning: Assert statement modifies 'pduc'. [assignmentInAssert] braa-0.82/braaprotocol.c:14:30: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/braaprotocol.c:53:17: warning: Assert statement modifies 'varseql'. [assignmentInAssert] braa-0.82/braaprotocol.c:53:45: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/braaprotocol.c:60:13: warning: Assert statement modifies 'vsq'. [assignmentInAssert] braa-0.82/braaprotocol.c:60:30: warning: Assert statement calls a function which may have desired side effects: 'realloc'. [assertWithSideEffect] braa-0.82/braaprotocol.c:76:17: warning: Assert statement modifies 'varseql'. [assignmentInAssert] braa-0.82/braaprotocol.c:76:45: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/braaprotocol.c:83:13: warning: Assert statement modifies 'vsq'. [assignmentInAssert] braa-0.82/braaprotocol.c:83:30: warning: Assert statement calls a function which may have desired side effects: 'realloc'. [assertWithSideEffect] braa-0.82/braaprotocol.c:95:19: warning: Assert statement modifies 'community'. [assignmentInAssert] braa-0.82/braaprotocol.c:95:21: warning: Assert statement calls a function which may have desired side effects: 'strdup'. [assertWithSideEffect] braa-0.82/braaprotocol.c:96:14: warning: Assert statement modifies 'msgc'. [assignmentInAssert] braa-0.82/braaprotocol.c:96:30: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/braaprotocol.c:60:9: error: Common realloc mistake: 'vsq' nulled but not freed upon failure [memleakOnRealloc] braa-0.82/braaprotocol.c:83:9: error: Common realloc mistake: 'vsq' nulled but not freed upon failure [memleakOnRealloc] braa-0.82/braaprotocol.c:159:14: style: Variable 'varbindings' can be declared as pointer to const [constVariablePointer] braa-0.82/braaprotocol.c:181:14: style: Variable 'rc' can be declared as pointer to const [constVariablePointer] braa-0.82/braaprotocol.c:188:14: style: Variable 'rc' can be declared as pointer to const [constVariablePointer] braa-0.82/braaprotocol.c:195:14: style: Variable 'rc' can be declared as pointer to const [constVariablePointer] braa-0.82/braaasn.c:766:15: warning: Assert statement modifies 'str'. [assignmentInAssert] braa-0.82/braaasn.c:766:17: warning: Assert statement calls a function which may have desired side effects: 'strdup'. [assertWithSideEffect] braa-0.82/braaasn.c:441:12: warning: Identical condition 'size<3', second condition is always false [identicalConditionAfterEarlyExit] braa-0.82/braaasn.c:382:10: note: If condition 'size<3' is true, the function will return/exit braa-0.82/braaasn.c:441:12: note: Testing identical condition 'size<3' braa-0.82/braaasn.c:654:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] braa-0.82/braaasn.c:385:3: style: Statements following 'return' will never be executed. [unreachableCode] braa-0.82/queries.c:347:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timeb [valueFlowBailoutIncompleteVar] braa-0.82/queries.c:380:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_INET [valueFlowBailoutIncompleteVar] braa-0.82/queries.c:500:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] braa-0.82/braaasn.c:601:9: style: Local variable 'i' shadows outer variable [shadowVariable] braa-0.82/braaasn.c:562:6: note: Shadowed declaration braa-0.82/braaasn.c:601:9: note: Shadow variable braa-0.82/braaasn.c:616:9: style: Local variable 'i' shadows outer variable [shadowVariable] braa-0.82/braaasn.c:562:6: note: Shadowed declaration braa-0.82/braaasn.c:616:9: note: Shadow variable braa-0.82/braaasn.c:70:54: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] braa-0.82/braaasn.c:412:20: style: Variable 'str' can be declared as pointer to const [constVariablePointer] braa-0.82/braaasn.c:599:17: style: Variable 'o' can be declared as pointer to const [constVariablePointer] braa-0.82/braaasn.c:661:21: style: Variable 'data' can be declared as pointer to const [constVariablePointer] braa-0.82/braaasn.c:667:10: style: Unused variable: c [unusedVariable] braa-0.82/queries.c:25:11: warning: Assert statement modifies 'n'. [assignmentInAssert] braa-0.82/queries.c:25:39: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/queries.c:28:24: warning: Assert statement calls a function which may have desired side effects: 'strdup'. [assertWithSideEffect] braa-0.82/queries.c:31:31: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/queries.c:33:26: warning: Assert statement calls a function which may have desired side effects: 'strdup'. [assertWithSideEffect] braa-0.82/queries.c:50:16: warning: Assert statement modifies 'string'. [assignmentInAssert] braa-0.82/queries.c:50:18: warning: Assert statement calls a function which may have desired side effects: 'strdup'. [assertWithSideEffect] braa-0.82/queries.c:163:13: warning: Assert statement modifies 'hr'. [assignmentInAssert] braa-0.82/queries.c:163:41: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/queries.c:169:26: warning: Assert statement calls a function which may have desired side effects: 'strdup'. [assertWithSideEffect] braa-0.82/queries.c:184:43: warning: Assert statement calls a function which may have desired side effects: 'strdup'. [assertWithSideEffect] braa-0.82/queries.c:200:12: warning: Assert statement modifies 'qh'. [assignmentInAssert] braa-0.82/queries.c:200:34: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/queries.c:252:21: warning: Assert statement modifies 'walk_ids'. [assignmentInAssert] braa-0.82/queries.c:252:32: warning: Assert statement calls a function which may have desired side effects: 'realloc'. [assertWithSideEffect] braa-0.82/queries.c:272:20: warning: Assert statement modifies 'set_ids'. [assignmentInAssert] braa-0.82/queries.c:272:31: warning: Assert statement calls a function which may have desired side effects: 'realloc'. [assertWithSideEffect] braa-0.82/queries.c:278:20: warning: Assert statement modifies 'get_ids'. [assignmentInAssert] braa-0.82/queries.c:278:31: warning: Assert statement calls a function which may have desired side effects: 'realloc'. [assertWithSideEffect] braa-0.82/queries.c:305:24: warning: Assert statement modifies 'first_oids'. [assignmentInAssert] braa-0.82/queries.c:305:34: warning: Assert statement calls a function which may have desired side effects: 'realloc'. [assertWithSideEffect] braa-0.82/queries.c:317:16: warning: Assert statement modifies 'hosts'. [assignmentInAssert] braa-0.82/queries.c:317:34: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/queries.c:345:44: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/queries.c:346:46: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/queries.c:347:54: warning: Assert statement calls a function which may have desired side effects: 'malloc'. [assertWithSideEffect] braa-0.82/queries.c:52:13: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/queries.c:61:14: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/queries.c:70:13: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/queries.c:77:13: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/queries.c:177:15: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/queries.c:231:15: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/queries.c:255:20: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] braa-0.82/queries.c:399:15: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] braa-0.82/queries.c:415:15: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] braa-0.82/queries.c:428:5: style: Obsolescent function 'ftime' called. It is recommended to use 'time', 'gettimeofday' or 'clock_gettime' instead. [prohibitedftimeCalled] braa-0.82/queries.c:471:16: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] braa-0.82/queries.c:480:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] braa-0.82/queries.c:252:12: error: Common realloc mistake: 'walk_ids' nulled but not freed upon failure [memleakOnRealloc] braa-0.82/queries.c:272:12: error: Common realloc mistake: 'set_ids' nulled but not freed upon failure [memleakOnRealloc] braa-0.82/queries.c:278:12: error: Common realloc mistake: 'get_ids' nulled but not freed upon failure [memleakOnRealloc] braa-0.82/queries.c:305:13: error: Common realloc mistake: 'first_oids' nulled but not freed upon failure [memleakOnRealloc] braa-0.82/queries.c:20:77: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] braa-0.82/queries.c:41:9: style: Variable 'community' can be declared as pointer to const [constVariablePointer] braa-0.82/queries.c:43:17: style: Variable 'portno' can be declared as pointer to const [constVariablePointer] braa-0.82/queries.c:370:17: style: Variable 'start_query' can be declared as pointer to const [constVariablePointer] braa-0.82/queries.c:431:20: style: Variable 'prv' can be declared as pointer to const [constVariablePointer] braa-0.82/arch/braaclientnet.c:129:5: style: Obsolescent function 'ftime' called. It is recommended to use 'time', 'gettimeofday' or 'clock_gettime' instead. [prohibitedftimeCalled] braa-0.82/arch/braaclientnet.c:194:13: style: Obsolescent function 'ftime' called. It is recommended to use 'time', 'gettimeofday' or 'clock_gettime' instead. [prohibitedftimeCalled] braa-0.82/arch/braaclientnet.c:82:6: error: Common realloc mistake: 'vars' nulled but not freed upon failure [memleakOnRealloc] braa-0.82/arch/braaclientnet.c:78:6: warning: If memory allocation fails, then there is a possible null pointer dereference: varseql [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:77:42: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:77:16: note: Assignment 'varseql=(struct braa_asnobject**)malloc(sizeof(struct braa_asnobject*)*2)', assigned value is 0 braa-0.82/arch/braaclientnet.c:78:6: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:79:6: warning: If memory allocation fails, then there is a possible null pointer dereference: varseql [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:77:42: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:77:16: note: Assignment 'varseql=(struct braa_asnobject**)malloc(sizeof(struct braa_asnobject*)*2)', assigned value is 0 braa-0.82/arch/braaclientnet.c:79:6: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:88:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pduc [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:87:38: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:87:12: note: Assignment 'pduc=(struct braa_asnobject**)malloc(sizeof(struct braa_asnobject*)*4)', assigned value is 0 braa-0.82/arch/braaclientnet.c:88:5: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:89:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pduc [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:87:38: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:87:12: note: Assignment 'pduc=(struct braa_asnobject**)malloc(sizeof(struct braa_asnobject*)*4)', assigned value is 0 braa-0.82/arch/braaclientnet.c:89:5: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:90:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pduc [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:87:38: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:87:12: note: Assignment 'pduc=(struct braa_asnobject**)malloc(sizeof(struct braa_asnobject*)*4)', assigned value is 0 braa-0.82/arch/braaclientnet.c:90:5: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:91:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pduc [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:87:38: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:87:12: note: Assignment 'pduc=(struct braa_asnobject**)malloc(sizeof(struct braa_asnobject*)*4)', assigned value is 0 braa-0.82/arch/braaclientnet.c:91:5: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:96:5: warning: If memory allocation fails, then there is a possible null pointer dereference: msgc [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:94:38: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:94:12: note: Assignment 'msgc=(struct braa_asnobject**)malloc(sizeof(struct braa_asnobject*)*3)', assigned value is 0 braa-0.82/arch/braaclientnet.c:96:5: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:97:5: warning: If memory allocation fails, then there is a possible null pointer dereference: msgc [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:94:38: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:94:12: note: Assignment 'msgc=(struct braa_asnobject**)malloc(sizeof(struct braa_asnobject*)*3)', assigned value is 0 braa-0.82/arch/braaclientnet.c:97:5: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:98:5: warning: If memory allocation fails, then there is a possible null pointer dereference: msgc [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:94:38: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:94:12: note: Assignment 'msgc=(struct braa_asnobject**)malloc(sizeof(struct braa_asnobject*)*3)', assigned value is 0 braa-0.82/arch/braaclientnet.c:98:5: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:259:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:257:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:257:28: note: Assignment 'c=(struct braa_hclient*)malloc(sizeof(struct braa_hclient))', assigned value is 0 braa-0.82/arch/braaclientnet.c:259:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:260:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:257:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:257:28: note: Assignment 'c=(struct braa_hclient*)malloc(sizeof(struct braa_hclient))', assigned value is 0 braa-0.82/arch/braaclientnet.c:260:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:261:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:257:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:257:28: note: Assignment 'c=(struct braa_hclient*)malloc(sizeof(struct braa_hclient))', assigned value is 0 braa-0.82/arch/braaclientnet.c:261:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:262:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:257:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:257:28: note: Assignment 'c=(struct braa_hclient*)malloc(sizeof(struct braa_hclient))', assigned value is 0 braa-0.82/arch/braaclientnet.c:262:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:263:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:257:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:257:28: note: Assignment 'c=(struct braa_hclient*)malloc(sizeof(struct braa_hclient))', assigned value is 0 braa-0.82/arch/braaclientnet.c:263:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:265:6: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:257:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:257:28: note: Assignment 'c=(struct braa_hclient*)malloc(sizeof(struct braa_hclient))', assigned value is 0 braa-0.82/arch/braaclientnet.c:265:6: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:277:2: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:276:50: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:276:27: note: Assignment 'h=(struct braa_hqhost*)malloc(sizeof(struct braa_hqhost))', assigned value is 0 braa-0.82/arch/braaclientnet.c:277:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:278:2: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:276:50: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:276:27: note: Assignment 'h=(struct braa_hqhost*)malloc(sizeof(struct braa_hqhost))', assigned value is 0 braa-0.82/arch/braaclientnet.c:278:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:279:2: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:276:50: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:276:27: note: Assignment 'h=(struct braa_hqhost*)malloc(sizeof(struct braa_hqhost))', assigned value is 0 braa-0.82/arch/braaclientnet.c:279:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:280:2: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:276:50: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:276:27: note: Assignment 'h=(struct braa_hqhost*)malloc(sizeof(struct braa_hqhost))', assigned value is 0 braa-0.82/arch/braaclientnet.c:280:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:281:2: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:276:50: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:276:27: note: Assignment 'h=(struct braa_hqhost*)malloc(sizeof(struct braa_hqhost))', assigned value is 0 braa-0.82/arch/braaclientnet.c:281:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:282:2: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:276:50: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:276:27: note: Assignment 'h=(struct braa_hqhost*)malloc(sizeof(struct braa_hqhost))', assigned value is 0 braa-0.82/arch/braaclientnet.c:282:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:283:2: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:276:50: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:276:27: note: Assignment 'h=(struct braa_hqhost*)malloc(sizeof(struct braa_hqhost))', assigned value is 0 braa-0.82/arch/braaclientnet.c:283:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:284:2: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:276:50: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:276:27: note: Assignment 'h=(struct braa_hqhost*)malloc(sizeof(struct braa_hqhost))', assigned value is 0 braa-0.82/arch/braaclientnet.c:284:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:285:2: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:276:50: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:276:27: note: Assignment 'h=(struct braa_hqhost*)malloc(sizeof(struct braa_hqhost))', assigned value is 0 braa-0.82/arch/braaclientnet.c:285:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:307:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:306:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:306:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:307:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:308:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:306:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:306:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:308:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:310:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:306:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:306:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:310:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:312:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:306:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:306:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:312:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:313:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:306:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:306:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:313:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:315:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:306:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:306:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:315:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:327:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:325:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:325:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:327:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:328:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:325:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:325:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:328:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:330:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:325:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:325:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:330:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:332:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:325:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:325:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:332:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:333:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:325:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:325:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:333:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:335:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:325:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:325:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:335:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:339:2: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] braa-0.82/arch/braaclientnet.c:325:52: note: Assuming allocation function fails braa-0.82/arch/braaclientnet.c:325:28: note: Assignment 'q=(struct braa_hcquery*)malloc(sizeof(struct braa_hcquery))', assigned value is 0 braa-0.82/arch/braaclientnet.c:339:2: note: Null pointer dereference braa-0.82/arch/braaclientnet.c:21:84: style:inconclusive: Function 'braa_HClient_Process' argument 3 names different: declaration 'version' definition 'snmp_version'. [funcArgNamesDifferent] braa-0.82/arch/braaclientnet.h:52:84: note: Function 'braa_HClient_Process' argument 3 names different: declaration 'version' definition 'snmp_version'. braa-0.82/arch/braaclientnet.c:21:84: note: Function 'braa_HClient_Process' argument 3 names different: declaration 'version' definition 'snmp_version'. braa-0.82/arch/braaclientnet.c:178:15: style: Local variable 'i' shadows outer variable [shadowVariable] braa-0.82/arch/braaclientnet.c:36:7: note: Shadowed declaration braa-0.82/arch/braaclientnet.c:178:15: note: Shadow variable braa-0.82/arch/braaclientnet.c:185:33: style: Local variable 'h' shadows outer variable [shadowVariable] braa-0.82/arch/braaclientnet.c:34:24: note: Shadowed declaration braa-0.82/arch/braaclientnet.c:185:33: note: Shadow variable braa-0.82/arch/braaclientnet.c:212:38: style: Local variable 'q' shadows outer variable [shadowVariable] braa-0.82/arch/braaclientnet.c:35:25: note: Shadowed declaration braa-0.82/arch/braaclientnet.c:212:38: note: Shadow variable braa-0.82/arch/braaclientnet.c:210:40: style: Variable 'oid' can be declared as pointer to const [constVariablePointer] braa-0.82/arch/braaclientnet.c:36:7: style: Unused variable: i [unusedVariable] diff: DONE