2025-11-27 05:25 ftp://ftp.de.debian.org/debian/pool/main/i/input-utils/input-utils_1.3.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-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 9486fde (2025-11-26 08:20:02 +0100) count: 67 67 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: input-1.3/emulate-key.c:18:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] input-1.3/emulate-key.c:31:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_KEY [valueFlowBailoutIncompleteVar] input-1.3/emulate-key.c:60:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_MAX [valueFlowBailoutIncompleteVar] input-1.3/emulate-key.c:108:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] input-1.3/emulate-key.c:110:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] input-1.3/emulate-key.c:112:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] input-1.3/emulate-key.c:50:15: style: Variable 'name' can be declared as pointer to const [constVariablePointer] input-1.3/input-events.c:29:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVIOCGRAB [valueFlowBailoutIncompleteVar] input-1.3/input-events.c:91:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] input-1.3/input-events.c:110:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] input-1.3/input-events.c:28:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] input-1.3/input-kbd.c:51:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_RESERVED [valueFlowBailoutIncompleteVar] input-1.3/input-kbd.c:97:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVIOCSKEYCODE [valueFlowBailoutIncompleteVar] input-1.3/input-kbd.c:112:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_KEY [valueFlowBailoutIncompleteVar] input-1.3/input-kbd.c:123:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_RESERVED [valueFlowBailoutIncompleteVar] input-1.3/input-kbd.c:150:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] input-1.3/input-kbd.c:193:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_CNT [valueFlowBailoutIncompleteVar] input-1.3/input-kbd.c:218:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] input-1.3/input-kbd.c:229:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] input-1.3/input-kbd.c:250:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] input-1.3/input-kbd.c:268:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] input-1.3/input-kbd.c:99:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] input-1.3/input-kbd.c:99:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] input-1.3/input-kbd.c:158:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] input-1.3/input-kbd.c:47:9: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:46:14: note: Assuming allocation function fails input-1.3/input-kbd.c:46:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:47:9: note: Null pointer dereference input-1.3/input-kbd.c:48:7: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:46:14: note: Assuming allocation function fails input-1.3/input-kbd.c:46:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:48:7: note: Null pointer dereference input-1.3/input-kbd.c:48:22: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:46:14: note: Assuming allocation function fails input-1.3/input-kbd.c:46:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:48:22: note: Null pointer dereference input-1.3/input-kbd.c:48:41: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:46:14: note: Assuming allocation function fails input-1.3/input-kbd.c:46:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:48:41: note: Null pointer dereference input-1.3/input-kbd.c:50:21: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:46:14: note: Assuming allocation function fails input-1.3/input-kbd.c:46:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:50:21: note: Null pointer dereference input-1.3/input-kbd.c:58:14: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:46:14: note: Assuming allocation function fails input-1.3/input-kbd.c:46:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:58:14: note: Null pointer dereference input-1.3/input-kbd.c:72:7: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:46:14: note: Assuming allocation function fails input-1.3/input-kbd.c:46:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:72:7: note: Null pointer dereference input-1.3/input-kbd.c:72:20: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:46:14: note: Assuming allocation function fails input-1.3/input-kbd.c:46:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:72:20: note: Null pointer dereference input-1.3/input-kbd.c:77:3: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:46:14: note: Assuming allocation function fails input-1.3/input-kbd.c:46:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:77:3: note: Null pointer dereference input-1.3/input-kbd.c:77:12: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:46:14: note: Assuming allocation function fails input-1.3/input-kbd.c:46:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:77:12: note: Null pointer dereference input-1.3/input-kbd.c:138:9: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] input-1.3/input-kbd.c:137:14: note: Assuming allocation function fails input-1.3/input-kbd.c:137:14: note: Assignment 'map=malloc(sizeof(*map))', assigned value is 0 input-1.3/input-kbd.c:138:9: note: Null pointer dereference input-1.3/input-kbd.c:157:22: style: Checking if unsigned expression 'entry.scancode' is less than zero. [unsignedLessThanZero] input-1.3/input-kbd.c:118:53: style: Parameter 'map' can be declared as pointer to const [constParameterPointer] input-1.3/input-kbd.c:223:65: style: Parameter 'mapfile' can be declared as pointer to const [constParameterPointer] input-1.3/input-recv.c:15:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] input-1.3/input-recv.c:32:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_UNSPEC [valueFlowBailoutIncompleteVar] input-1.3/input-send.c:45:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] input-1.3/input-send.c:59:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] input-1.3/input-send.c:84:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] input-1.3/input-send.c:113:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] input-1.3/input-send.c:164:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] input-1.3/input-send.c:173:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] input-1.3/input-send.c:189:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_UNSPEC [valueFlowBailoutIncompleteVar] input-1.3/input-send.c:164:29: warning: Return value of function dup() is not used. [ignoredReturnValue] input-1.3/input-send.c:164:37: warning: Return value of function dup() is not used. [ignoredReturnValue] input-1.3/input-send.c:34:9: warning: If memory allocation fails, then there is a possible null pointer dereference: conn [nullPointerOutOfMemory] input-1.3/input-send.c:33:15: note: Assuming allocation function fails input-1.3/input-send.c:33:15: note: Assignment 'conn=malloc(sizeof(*conn))', assigned value is 0 input-1.3/input-send.c:34:9: note: Null pointer dereference input-1.3/input-send.c:36:2: warning: If memory allocation fails, then there is a possible null pointer dereference: conn [nullPointerOutOfMemory] input-1.3/input-send.c:33:15: note: Assuming allocation function fails input-1.3/input-send.c:33:15: note: Assignment 'conn=malloc(sizeof(*conn))', assigned value is 0 input-1.3/input-send.c:36:2: note: Null pointer dereference input-1.3/input-send.c:37:12: warning: If memory allocation fails, then there is a possible null pointer dereference: conn [nullPointerOutOfMemory] input-1.3/input-send.c:33:15: note: Assuming allocation function fails input-1.3/input-send.c:33:15: note: Assignment 'conn=malloc(sizeof(*conn))', assigned value is 0 input-1.3/input-send.c:37:12: note: Null pointer dereference input-1.3/list.h:108:52: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] input-1.3/input.c:91:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] input-1.3/input.c:114:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVIOCGID [valueFlowBailoutIncompleteVar] input-1.3/input.c:213:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] input-1.3/input.c:212:36: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] input-1.3/lsinput.c:35:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] input-1.3/lsinput.c:53:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] input-1.3/tcp.c:30:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] input-1.3/tcp.c:108:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] input-1.3/tcp.c:25:9: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] input-1.3/tcp.c:25:21: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] input-1.3/tcp.c:26:9: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] input-1.3/tcp.c:26:21: style: Parameter 'serv' can be declared as pointer to const [constParameterPointer] input-1.3/tcp.c:105:43: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] input-1.3/tcp.c:105:55: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] diff: DONE