2026-03-20 11:52 ftp://ftp.de.debian.org/debian/pool/main/b/bittwist/bittwist_4.7+ds.orig.tar.xz 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-106-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 4412833 (2026-03-20 08:27:05 +0100) count: 117 117 elapsed-time: 1.3 1.3 head-timing-info: old-timing-info: head results: bittwist-linux-4.7/src/bittwist.c:108:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] bittwist-linux-4.7/src/bittwist.c:223:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] bittwist-linux-4.7/src/bittwist.c:396:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bittwist-linux-4.7/src/bittwist.c:463:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] bittwist-linux-4.7/src/bittwist.c:548:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bittwist-linux-4.7/src/bittwist.c:568:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] bittwist-linux-4.7/src/bittwist.c:692:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bittwist-linux-4.7/src/bittwist.c:705:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bittwist-linux-4.7/src/bittwist.c:488:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] bittwist-linux-4.7/src/bittwist.c:494:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] bittwist-linux-4.7/src/bittwist.c:515:21: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] bittwist-linux-4.7/src/bittwist.c:618:13: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] bittwist-linux-4.7/src/bittwist.c:619:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] bittwist-linux-4.7/src/bittwist.c:529:18: style: Condition 'copy_lencaplen?pkt_len:header->caplen' here. bittwist-linux-4.7/src/bittwist.c:525:54: note: Assuming condition is false bittwist-linux-4.7/src/bittwist.c:529:18: note: Condition 'copy_lenmin_len' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:437:16: style: Checking if unsigned expression 'netlen' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:520:16: style: Checking if unsigned expression 'netlen' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:625:15: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:648:19: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:751:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:815:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:822:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:850:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:886:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:893:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:900:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:937:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:944:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:966:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:973:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:1043:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:1050:23: style: Checking if unsigned expression 'v' is less than zero. [unsignedLessThanZero] bittwist-linux-4.7/src/bittwiste.c:3258:28: style: Unsigned expression 'i' can't be negative so it is unnecessary to test it. [unsignedPositive] bittwist-linux-4.7/src/bittwiste.c:500:59: style:inconclusive: Function 'set_rand_in6_addr_options' argument 2 names different: declaration 'netaddr' definition 'netnum'. [funcArgNamesDifferent] bittwist-linux-4.7/src/bittwiste.h:36:59: note: Function 'set_rand_in6_addr_options' argument 2 names different: declaration 'netaddr' definition 'netnum'. bittwist-linux-4.7/src/bittwiste.c:500:59: note: Function 'set_rand_in6_addr_options' argument 2 names different: declaration 'netaddr' definition 'netnum'. bittwist-linux-4.7/src/bittwiste.c:290:11: style: Variable 'input_min_len' can be declared as pointer to const [constVariablePointer] bittwist-linux-4.7/src/bittwiste.c:296:15: style: Variable 'input_max_len' can be declared as pointer to const [constVariablePointer] bittwist-linux-4.7/src/bittwiste.c:327:24: style: Parameter 'input_bytes' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:352:21: style: Variable 'hex_byte' can be declared as const array [constVariable] bittwist-linux-4.7/src/bittwiste.c:377:33: style: Parameter 'optarg' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:390:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] bittwist-linux-4.7/src/bittwiste.c:426:11: style: Variable 'input_netnum' can be declared as pointer to const [constVariablePointer] bittwist-linux-4.7/src/bittwiste.c:427:11: style: Variable 'input_netlen' can be declared as pointer to const [constVariablePointer] bittwist-linux-4.7/src/bittwiste.c:454:32: style: Parameter 'optarg' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:509:11: style: Variable 'input_netnum' can be declared as pointer to const [constVariablePointer] bittwist-linux-4.7/src/bittwiste.c:510:11: style: Variable 'input_netlen' can be declared as pointer to const [constVariablePointer] bittwist-linux-4.7/src/bittwiste.c:538:33: style: Parameter 'optarg' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:602:31: style: Parameter 'optarg' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:615:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] bittwist-linux-4.7/src/bittwiste.c:667:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] bittwist-linux-4.7/src/bittwiste.c:1532:64: style: Parameter 'vlanopt' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:1859:50: style: Parameter 'ip_o' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:1859:66: style: Parameter 'ip_hlb' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:2247:60: style: Parameter 'ip_hdr' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:2248:34: style: Parameter 'ip_hlb' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:2592:51: style: Parameter 'tcp_hlb' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:2592:69: style: Parameter 'tcp_o' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:2786:34: style: Parameter 'tcp_hlb' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:2786:52: style: Parameter 'tcp_o' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:3290:45: style: Parameter 'ip_hdr' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:3290:63: style: Parameter 'ip_hlb' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/bittwiste.c:1707:15: style: Variable 'r' is assigned a value that is never used. [unreadVariable] bittwist-linux-4.7/src/bittwiste.c:1708:15: style: Variable 'd' is assigned a value that is never used. [unreadVariable] bittwist-linux-4.7/src/tinymt/tinymt64.h:56:18: style: Parameter 'random' can be declared as pointer to const [constParameterPointer] bittwist-linux-4.7/src/token_bucket.c:27:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] diff: DONE