2026-05-04 20:49 ftp://ftp.de.debian.org/debian/pool/main/r/rinetd/rinetd_0.73.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 -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: 519958a (2026-05-04 15:03:10 +0200) count: 78 63 elapsed-time: 0.9 0.8 head-timing-info: old-timing-info: head results: rinetd-0.73/src/getopt.c:422:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] rinetd-0.73/src/getopt.c:329:10: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:330:19: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:331:18: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:332:27: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '' definition 'longopts'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:333:11: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '' definition 'longind'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:334:10: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '' definition 'long_only'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:663:10: style:inconclusive: Function 'getopt' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:664:19: style:inconclusive: Function 'getopt' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:665:18: style:inconclusive: Function 'getopt' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:675:10: style:inconclusive: Function 'getopt_long' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:676:19: style:inconclusive: Function 'getopt_long' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:677:18: style:inconclusive: Function 'getopt_long' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:678:27: style:inconclusive: Function 'getopt_long' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:679:11: style:inconclusive: Function 'getopt_long' argument 5 names different: declaration '' definition 'opt_index'. [funcArgNamesDifferentUnnamed] rinetd-0.73/src/getopt.c:186:18: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] rinetd-0.73/src/getopt.c:583:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] rinetd-0.73/src/match.c:17:23: style:inconclusive: Function 'match' argument 1 names different: declaration 's' definition 'sorig'. [funcArgNamesDifferent] rinetd-0.73/src/match.h:11:30: note: Function 'match' argument 1 names different: declaration 's' definition 'sorig'. rinetd-0.73/src/match.c:17:23: note: Function 'match' argument 1 names different: declaration 's' definition 'sorig'. rinetd-0.73/src/match.c:22:29: style:inconclusive: Function 'matchNoCase' argument 1 names different: declaration 's' definition 'sorig'. [funcArgNamesDifferent] rinetd-0.73/src/match.h:12:36: note: Function 'matchNoCase' argument 1 names different: declaration 's' definition 'sorig'. rinetd-0.73/src/match.c:22:29: note: Function 'matchNoCase' argument 1 names different: declaration 's' definition 'sorig'. rinetd-0.73/src/match.c:29:27: style:inconclusive: Function 'matchBody' argument 1 names different: declaration 's' definition 'sorig'. [funcArgNamesDifferent] rinetd-0.73/src/match.h:13:34: note: Function 'matchBody' argument 1 names different: declaration 's' definition 'sorig'. rinetd-0.73/src/match.c:29:27: note: Function 'matchBody' argument 1 names different: declaration 's' definition 'sorig'. rinetd-0.73/src/net.h:83:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rinetd-0.73/src/net.c:22:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIONBIO [valueFlowBailoutIncompleteVar] rinetd-0.73/src/net.c:39:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] rinetd-0.73/src/net.c:36:32: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] rinetd-0.73/src/net.c:36:47: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] rinetd-0.73/src/net.c:76:35: style: Parameter 'ai' can be declared as pointer to const [constParameterPointer] parse.peg:167:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] parse.peg:287:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] parse.peg:399:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logFormatCommon [valueFlowBailoutIncompleteVar] parse.peg:415:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pidLogFileName [valueFlowBailoutIncompleteVar] parse.peg:434:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logFileName [valueFlowBailoutIncompleteVar] parse.peg:467:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable allRules [valueFlowBailoutIncompleteVar] parse.peg:500:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] parse.peg:514:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_UDP [valueFlowBailoutIncompleteVar] parse.peg:528:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] parse.peg:643:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RINETD_DEFAULT_UDP_TIMEOUT [valueFlowBailoutIncompleteVar] parse.peg:1378:17: style: Variable 'yyctx->__begin' is reassigned a value before the old one has been used. [redundantAssignment] parse.peg:1376:21: note: yyctx->__begin is assigned parse.peg:1378:17: note: yyctx->__begin is overwritten parse.peg:1331:3: style: Label 'l139' is not used. [unusedLabel] parse.peg:1340:3: style: Label 'l148' is not used. [unusedLabel] parse.peg:366:8: warning: Redundant code: Found unused member access. [constStatement] parse.peg:213:58: style: Parameter 'bits' can be declared as pointer to const [constParameterPointer] parse.peg:358:37: style: Parameter 'yy' can be declared as pointer to const. However it seems that 'yy_1_sol' is a callback function, if 'yy' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1337:48: note: You might need to cast the function pointer here parse.peg:358:37: note: Parameter 'yy' can be declared as pointer to const parse.peg:358:47: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_sol' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1337:48: note: You might need to cast the function pointer here parse.peg:358:47: note: Parameter 'yytext' can be declared as pointer to const parse.peg:390:43: style: Parameter 'yy' can be declared as pointer to const. However it seems that 'yy_1_logcommon' is a callback function, if 'yy' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1130:103: note: You might need to cast the function pointer here parse.peg:390:43: note: Parameter 'yy' can be declared as pointer to const parse.peg:390:53: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_logcommon' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1130:103: note: You might need to cast the function pointer here parse.peg:390:53: note: Parameter 'yytext' can be declared as pointer to const parse.peg:406:44: style: Parameter 'yy' can be declared as pointer to const. However it seems that 'yy_1_pidlogfile' is a callback function, if 'yy' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1151:15: note: You might need to cast the function pointer here parse.peg:406:44: note: Parameter 'yy' can be declared as pointer to const parse.peg:406:54: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_pidlogfile' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1151:15: note: You might need to cast the function pointer here parse.peg:406:54: note: Parameter 'yytext' can be declared as pointer to const parse.peg:425:41: style: Parameter 'yy' can be declared as pointer to const. However it seems that 'yy_1_logfile' is a callback function, if 'yy' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1172:15: note: You might need to cast the function pointer here parse.peg:425:41: note: Parameter 'yy' can be declared as pointer to const parse.peg:425:51: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_logfile' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1172:15: note: You might need to cast the function pointer here parse.peg:425:51: note: Parameter 'yytext' can be declared as pointer to const parse.peg:444:52: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_auth_key' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:868:15: note: You might need to cast the function pointer here parse.peg:444:52: note: Parameter 'yytext' can be declared as pointer to const parse.peg:458:43: style: Parameter 'yy' can be declared as pointer to const. However it seems that 'yy_1_auth_rule' is a callback function, if 'yy' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1193:15: note: You might need to cast the function pointer here parse.peg:458:43: note: Parameter 'yy' can be declared as pointer to const parse.peg:458:53: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_auth_rule' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1193:15: note: You might need to cast the function pointer here parse.peg:458:53: note: Parameter 'yytext' can be declared as pointer to const parse.peg:534:48: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_port' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:916:15: note: You might need to cast the function pointer here parse.peg:534:48: note: Parameter 'yytext' can be declared as pointer to const parse.peg:548:57: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_option_source' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:958:15: note: You might need to cast the function pointer here parse.peg:548:57: note: Parameter 'yytext' can be declared as pointer to const parse.peg:562:58: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_option_timeout' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:987:15: note: You might need to cast the function pointer here parse.peg:562:58: note: Parameter 'yytext' can be declared as pointer to const parse.peg:604:59: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_connect_address' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1091:15: note: You might need to cast the function pointer here parse.peg:604:59: note: Parameter 'yytext' can be declared as pointer to const parse.peg:618:56: style: Parameter 'yytext' can be declared as pointer to const. However it seems that 'yy_1_bind_address' is a callback function, if 'yytext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1121:15: note: You might need to cast the function pointer here parse.peg:618:56: note: Parameter 'yytext' can be declared as pointer to const parse.peg:1336:14: style: Variable 'yypos0' is assigned a value that is never used. [unreadVariable] parse.peg:1336:38: style: Variable 'yythunkpos0' is assigned a value that is never used. [unreadVariable] rinetd-0.73/src/rinetd.c:213:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:229:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:334:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:395:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:461:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:576:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EWOULDBLOCK [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:609:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:645:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:684:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:834:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:957:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:1048:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] rinetd-0.73/src/rinetd.c:985:17: warning: Either the condition 'result==logDenied' is redundant or the array 'logMessages[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] rinetd-0.73/src/rinetd.c:982:37: note: Assuming that condition 'result==logDenied' is not redundant rinetd-0.73/src/rinetd.c:985:17: note: Array index out of bounds rinetd-0.73/src/rinetd.c:1089:19: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] rinetd-0.73/src/rinetd.c:1090:17: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] rinetd-0.73/src/rinetd.c:807:35: error: Null pointer dereference [nullPointer] rinetd-0.73/src/rinetd.c:559:15: style: Variable 'srv' can be declared as pointer to const [constVariablePointer] rinetd-0.73/src/rinetd.c:958:13: style: Variable 't' can be declared as pointer to const [constVariablePointer] rinetd-0.73/src/rinetd.c:1034:24: style: Variable 'long_options' can be declared as const array [constVariable] diff: head parse.peg:458:43: style: Parameter 'yy' can be declared as pointer to const. However it seems that 'yy_1_auth_rule' is a callback function, if 'yy' is declared with const you might also need to cast function pointer(s). [constParameterCallback] parse.peg:1193:15: note: You might need to cast the function pointer here parse.peg:458:43: note: Parameter 'yy' can be declared as pointer to const head rinetd-0.73/src/getopt.c:329:10: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:330:19: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:331:18: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:332:27: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '' definition 'longopts'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:333:11: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '' definition 'longind'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:334:10: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '' definition 'long_only'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:663:10: style:inconclusive: Function 'getopt' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:664:19: style:inconclusive: Function 'getopt' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:665:18: style:inconclusive: Function 'getopt' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:675:10: style:inconclusive: Function 'getopt_long' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:676:19: style:inconclusive: Function 'getopt_long' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:677:18: style:inconclusive: Function 'getopt_long' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:678:27: style:inconclusive: Function 'getopt_long' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] head rinetd-0.73/src/getopt.c:679:11: style:inconclusive: Function 'getopt_long' argument 5 names different: declaration '' definition 'opt_index'. [funcArgNamesDifferentUnnamed] DONE