2025-05-06 15:11 ftp://ftp.de.debian.org/debian/pool/main/n/nslint/nslint_3.2.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 -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: 3ed376a (2025-05-06 16:30:48 +0200) count: 39 39 elapsed-time: 1.3 1.3 head-timing-info: old-timing-info: head results: nslint-3.2/savestr.c:56:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/savestr.c:60:15: warning: Possible null pointer dereference: strptr [nullPointer] nslint-3.2/savestr.c:46:24: note: Assignment 'strptr=NULL', assigned value is 0 nslint-3.2/savestr.c:50:11: note: Assuming condition is false nslint-3.2/savestr.c:60:15: note: Null pointer dereference nslint-3.2/nslint.c:324:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:408:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:469:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:593:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:655:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:709:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:837:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:1262:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:1301:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:1406:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:1495:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:1535:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:1814:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:1843:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:2067:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:2768:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:2928:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:2977:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nslint-3.2/nslint.c:1411:15: portability: Non reentrant function 'getservent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservent_r'. [prohibitedgetserventCalled] nslint-3.2/nslint.c:2105:11: style: Condition '*cp=='\0'' is always false [knownConditionTrueFalse] nslint-3.2/nslint.c:1810:4: error: Common realloc mistake: 'netlist' nulled but not freed upon failure [memleakOnRealloc] nslint-3.2/nslint.c:2296:14: style: Variable 'rtype' is reassigned a value before the old one has been used. [redundantAssignment] nslint-3.2/nslint.c:2295:9: note: rtype is assigned nslint-3.2/nslint.c:2296:14: note: rtype is overwritten nslint-3.2/nslint.c:2870:9: style: Checking if unsigned expression 'w' is less than zero. [unsignedLessThanZero] nslint-3.2/nslint.c:459:24: style: Parameter 'ip' can be declared as pointer to const [constParameterPointer] nslint-3.2/nslint.c:510:13: style: Variable 'serv' can be declared as pointer to const [constVariablePointer] nslint-3.2/nslint.c:635:15: style: Variable 'i1' can be declared as pointer to const [constVariablePointer] nslint-3.2/nslint.c:635:20: style: Variable 'i2' can be declared as pointer to const [constVariablePointer] nslint-3.2/nslint.c:832:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] nslint-3.2/nslint.c:832:15: style: Variable 'zonename' can be declared as pointer to const [constVariablePointer] nslint-3.2/nslint.c:832:37: style: Variable 'typename' can be declared as pointer to const [constVariablePointer] nslint-3.2/nslint.c:1365:26: style: Parameter 'ap' can be declared as pointer to const [constParameterPointer] nslint-3.2/nslint.c:1400:18: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] nslint-3.2/nslint.c:2045:29: style: Variable 'rtype' can be declared as pointer to const [constVariablePointer] nslint-3.2/nslint.c:607:6: style: Variable 'r1' is assigned a value that is never used. [unreadVariable] nslint-3.2/nslint.c:638:5: style: Variable 'i2' is assigned a value that is never used. [unreadVariable] nslint-3.2/nslint.c:675:6: style: Variable 'r1' is assigned a value that is never used. [unreadVariable] nslint-3.2/nslint.c:684:6: style: Variable 'r2' is assigned a value that is never used. [unreadVariable] diff: DONE