2026-05-01 15:05 ftp://ftp.de.debian.org/debian/pool/main/d/detachtty/detachtty_11.0.0.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: e5c4a73 (2026-05-01 11:10:43 +0200) count: 36 36 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: detachtty-11.0.0/attachtty.c:73:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESETHAND [valueFlowBailoutIncompleteVar] detachtty-11.0.0/attachtty.c:119:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESETHAND [valueFlowBailoutIncompleteVar] detachtty-11.0.0/attachtty.c:127:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] detachtty-11.0.0/attachtty.c:152:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INLCR [valueFlowBailoutIncompleteVar] detachtty-11.0.0/attachtty.c:166:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCSADRAIN [valueFlowBailoutIncompleteVar] detachtty-11.0.0/attachtty.c:178:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] detachtty-11.0.0/attachtty.c:228:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] detachtty-11.0.0/attachtty.c:243:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] detachtty-11.0.0/attachtty.c:250:16: warning: Either the condition 'sock==-1' is redundant or connect() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] detachtty-11.0.0/attachtty.c:248:12: note: Assuming that condition 'sock==-1' is not redundant detachtty-11.0.0/attachtty.c:250:16: note: Invalid argument detachtty-11.0.0/attachtty.c:187:21: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] detachtty-11.0.0/attachtty.c:185:13: note: Assuming allocation function fails detachtty-11.0.0/attachtty.c:185:13: note: Assignment 'p=strdup(argv[1])', assigned value is 0 detachtty-11.0.0/attachtty.c:187:21: note: Null pointer dereference detachtty-11.0.0/attachtty.c:125:40: style:inconclusive: Function 'cleanup_signal_handler' argument 1 names different: declaration 'signal' definition 'sig'. [funcArgNamesDifferent] detachtty-11.0.0/attachtty.c:35:40: note: Function 'cleanup_signal_handler' argument 1 names different: declaration 'signal' definition 'sig'. detachtty-11.0.0/attachtty.c:125:40: note: Function 'cleanup_signal_handler' argument 1 names different: declaration 'signal' definition 'sig'. detachtty-11.0.0/attachtty.c:338:60: style:inconclusive: Function 'connect_ssh' argument 4 names different: declaration 'timeout' definition 'timeout_str'. [funcArgNamesDifferent] detachtty-11.0.0/attachtty.c:30:60: note: Function 'connect_ssh' argument 4 names different: declaration 'timeout' definition 'timeout_str'. detachtty-11.0.0/attachtty.c:338:60: note: Function 'connect_ssh' argument 4 names different: declaration 'timeout' definition 'timeout_str'. detachtty-11.0.0/attachtty.c:236:28: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] detachtty-11.0.0/attachtty.c:254:19: style: Variable 'msec_left' is assigned a value that is never used. [unreadVariable] detachtty-11.0.0/copy-stream.c:185:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] detachtty-11.0.0/copy-stream.c:175:64: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] detachtty-11.0.0/copy-stream.c:112:23: style: Variable 'bytes_written' is assigned a value that is never used. [unreadVariable] detachtty-11.0.0/detachtty.c:83:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] detachtty-11.0.0/detachtty.c:97:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] detachtty-11.0.0/detachtty.c:109:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] detachtty-11.0.0/detachtty.c:129:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] detachtty-11.0.0/detachtty.c:301:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] detachtty-11.0.0/detachtty.c:378:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] detachtty-11.0.0/detachtty.c:402:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESETHAND [valueFlowBailoutIncompleteVar] detachtty-11.0.0/detachtty.c:437:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] detachtty-11.0.0/detachtty.c:305:14: warning: Either the condition 'master_socket<0' is redundant or bind() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] detachtty-11.0.0/detachtty.c:298:23: note: Assuming that condition 'master_socket<0' is not redundant detachtty-11.0.0/detachtty.c:305:14: note: Invalid argument detachtty-11.0.0/detachtty.c:238:30: style: Condition 'sock>=0' is always true [knownConditionTrueFalse] detachtty-11.0.0/detachtty.c:234:17: note: Assuming that condition 'sock>=0' is not redundant detachtty-11.0.0/detachtty.c:238:30: note: Condition 'sock>=0' is always true detachtty-11.0.0/detachtty.c:78:17: warning: If resource allocation fails, then there is a possible null pointer dereference: log_fp [nullPointerOutOfResources] detachtty-11.0.0/detachtty.c:75:23: note: Assuming allocation function fails detachtty-11.0.0/detachtty.c:75:23: note: Assignment 'log_fp=fopen(log_file_path,"a")', assigned value is 0 detachtty-11.0.0/detachtty.c:78:17: note: Null pointer dereference detachtty-11.0.0/detachtty.c:95:25: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] detachtty-11.0.0/detachtty.c:95:36: style: Parameter 'offending_option' can be declared as pointer to const [constParameterPointer] detachtty-11.0.0/errors.c:47:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] detachtty-11.0.0/errors.c:34:21: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] detachtty-11.0.0/errors.c:45:17: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] detachtty-11.0.0/forkpty.c:37:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] detachtty-11.0.0/forkpty.c:95:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] detachtty-11.0.0/forkpty.c:35:11: style: Variable 'slavename' can be declared as pointer to const [constVariablePointer] diff: DONE