2026-05-03 19:31 ftp://ftp.de.debian.org/debian/pool/main/n/netcat/netcat_1.10.orig.tar.bz2 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 -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: 52 52 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: netcat-1.10.orig/data/data.c:75:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netcat-1.10.orig/data/data.c:157:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netcat-1.10.orig/data/data.c:85:10: style: Unused variable: txt [unusedVariable] netcat-1.10.orig/data/data.c:86:7: style: Unused variable: raw [unusedVariable] netcat-1.10.orig/data/rservice.c:19:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netcat-1.10.orig/data/rservice.c:66:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netcat-1.10.orig/data/rservice.c:26:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] netcat-1.10.orig/data/xor.c:24:1: portability: Omitted return type of function 'xorb' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netcat-1.10.orig/data/xor.c:44:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netcat-1.10.orig/data/xor.c:73:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:947:1: portability: Omitted return type of function 'udptest' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netcat-1.10.orig/netcat.c:1295:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netcat-1.10.orig/netcat.c:1630:1: portability: Omitted return type of function 'helpme' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netcat-1.10.orig/netcat.c:187:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:222:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:231:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:245:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:307:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:356:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:607:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:777:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:955:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:1152:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:1323:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr [valueFlowBailoutIncompleteVar] netcat-1.10.orig/netcat.c:374:37: style: Array index 'x' is used before limits check. [arrayIndexThenCheck] netcat-1.10.orig/netcat.c:383:29: style: Array index 'x' is used before limits check. [arrayIndexThenCheck] netcat-1.10.orig/netcat.c:369:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] netcat-1.10.orig/netcat.c:384:17: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] netcat-1.10.orig/netcat.c:400:15: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] netcat-1.10.orig/netcat.c:406:12: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] netcat-1.10.orig/netcat.c:450:15: portability: Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'. [prohibitedgetservbyportCalled] netcat-1.10.orig/netcat.c:472:15: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] netcat-1.10.orig/netcat.c:362:11: warning:inconclusive: Possible null pointer dereference: poop [nullPointer] netcat-1.10.orig/netcat.c:334:26: note: Assignment 'poop=NULL', assigned value is 0 netcat-1.10.orig/netcat.c:358:7: note: Assuming condition is false netcat-1.10.orig/netcat.c:362:11: note: Null pointer dereference netcat-1.10.orig/netcat.c:641:22: style: Variable 'lclend->sin_family' is reassigned a value before the old one has been used. [redundantAssignment] netcat-1.10.orig/netcat.c:638:24: note: lclend->sin_family is assigned netcat-1.10.orig/netcat.c:641:22: note: lclend->sin_family is overwritten netcat-1.10.orig/netcat.c:842:8: style: Variable 'rr' is reassigned a value before the old one has been used. [redundantAssignment] netcat-1.10.orig/netcat.c:825:10: note: rr is assigned netcat-1.10.orig/netcat.c:842:8: note: rr is overwritten netcat-1.10.orig/netcat.c:1358:17: style: Checking if unsigned expression 'insaved' is less than zero. [unsignedLessThanZero] netcat-1.10.orig/netcat.c:1463:13: style: Checking if unsigned expression 'o_wait' is less than zero. [unsignedLessThanZero] netcat-1.10.orig/netcat.c:1507:27: style: Pointer expression 'iaddrs' converted to bool is always true. [knownPointerToBool] netcat-1.10.orig/netcat.c:183:10: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] netcat-1.10.orig/netcat.c:184:10: style: Parameter 'p1' can be declared as pointer to const [constParameterPointer] netcat-1.10.orig/netcat.c:184:16: style: Parameter 'p2' can be declared as pointer to const [constParameterPointer] netcat-1.10.orig/netcat.c:184:22: style: Parameter 'p3' can be declared as pointer to const [constParameterPointer] netcat-1.10.orig/netcat.c:184:28: style: Parameter 'p4' can be declared as pointer to const [constParameterPointer] netcat-1.10.orig/netcat.c:184:34: style: Parameter 'p5' can be declared as pointer to const [constParameterPointer] netcat-1.10.orig/netcat.c:184:40: style: Parameter 'p6' can be declared as pointer to const [constParameterPointer] netcat-1.10.orig/netcat.c:278:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netcat-1.10.orig/netcat.c:429:10: style: Parameter 'pstring' can be declared as pointer to const [constParameterPointer] netcat-1.10.orig/netcat.c:432:20: style: Variable 'servent' can be declared as pointer to const [constVariablePointer] netcat-1.10.orig/netcat.c:435:10: style: Variable 'whichp' can be declared as pointer to const [constVariablePointer] netcat-1.10.orig/netcat.c:599:8: style: Parameter 'rad' can be declared as pointer to const [constParameterPointer] netcat-1.10.orig/netcat.c:601:8: style: Parameter 'lad' can be declared as pointer to const [constParameterPointer] netcat-1.10.orig/netcat.c:998:28: style: Variable 'p' can be declared as pointer to const [constVariablePointer] diff: DONE