2022-06-22 10:28 ftp://ftp.de.debian.org/debian/pool/main/g/gvm-libs/gvm-libs_21.4.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: 650f409 (2022-06-22 08:46:48 +0200) count: 78 77 elapsed-time: 4.4 4.6 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: gvm-libs-21.4.4/base/array_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/array_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/cvss.c:389:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gvm-libs-21.4.4/base/cvss.c:400:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gvm-libs-21.4.4/base/drop_privileges.c:83:22: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] gvm-libs-21.4.4/base/cvss_tests.c:29:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/cvss_tests.c:32:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/hosts.c:1661:33: style:inconclusive: Function 'gvm_host_from_str' argument 1 names different: declaration 'hosts_str' definition 'host_str'. [funcArgNamesDifferent] gvm-libs-21.4.4/base/hosts.h:162:33: note: Function 'gvm_host_from_str' argument 1 names different: declaration 'hosts_str' definition 'host_str'. gvm-libs-21.4.4/base/hosts.c:1661:33: note: Function 'gvm_host_from_str' argument 1 names different: declaration 'hosts_str' definition 'host_str'. gvm-libs-21.4.4/base/logging.c:471:35: style: The if condition is the same as the previous if condition [duplicateCondition] gvm-libs-21.4.4/base/logging.c:428:35: note: First condition gvm-libs-21.4.4/base/logging.c:471:35: note: Second condition gvm-libs-21.4.4/base/hosts_tests.c:29:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/hosts_tests.c:32:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/networking.c:77:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] gvm-libs-21.4.4/base/networking.c:147:7: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] gvm-libs-21.4.4/base/networking.c:159:7: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] gvm-libs-21.4.4/base/networking.c:352:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] gvm-libs-21.4.4/base/networking.c:408:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] gvm-libs-21.4.4/base/networking.c:1300:12: warning: Either the condition '!target_addr' is redundant or there is possible null pointer dereference: target_addr. [nullPointerRedundantCheck] gvm-libs-21.4.4/base/networking.c:1302:7: note: Assuming that condition '!target_addr' is not redundant gvm-libs-21.4.4/base/networking.c:1300:12: note: Null pointer dereference gvm-libs-21.4.4/base/networking_tests.c:32:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/networking_tests.c:1093:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/nvti_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/nvti_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/prefs.c:175:3: warning:inconclusive: The buffer 'buffer' may not be null-terminated after the call to strncpy(). [terminateStrncpy] gvm-libs-21.4.4/base/proctitle.c:124:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] gvm-libs-21.4.4/base/pwpolicy.c:399:7: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] gvm-libs-21.4.4/base/version_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/base/version_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/alivedetection.c:183:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/alivedetection.c:193:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/alivedetection.c:203:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/alivedetection.c:109:22: style: Variable 'curr_alive' is assigned a value that is never used. [unreadVariable] gvm-libs-21.4.4/boreas/alivedetection_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/alivedetection_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/arp.c:301:11: style: The if condition is the same as the previous if condition [duplicateCondition] gvm-libs-21.4.4/boreas/arp.c:296:11: note: First condition gvm-libs-21.4.4/boreas/arp.c:301:11: note: Second condition gvm-libs-21.4.4/boreas/boreas_error_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/boreas_error_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/boreas_io_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/boreas_io_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/cli.c:125:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/cli.c:134:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/cli.c:143:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/cli.c:151:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/cli.c:165:10: warning: Identical condition and return expression 'error', return value is always 0 [identicalConditionAfterEarlyExit] gvm-libs-21.4.4/boreas/cli.c:116:7: note: If condition 'error' is true, the function will return/exit gvm-libs-21.4.4/boreas/cli.c:165:10: note: Returning identical expression 'error' gvm-libs-21.4.4/boreas/cli_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/cli_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/ping.c:111:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/ping.c:123:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/ping.c:127:15: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/ping.c:264:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/ping.c:526:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/ping.c:569:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/ping.c:332:39: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] gvm-libs-21.4.4/boreas/ping.c:145:41: style: Parameter 'dst' can be declared as pointer to const [constParameter] gvm-libs-21.4.4/boreas/ping.c:196:40: style: Parameter 'dst' can be declared as pointer to const [constParameter] gvm-libs-21.4.4/boreas/ping_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/ping_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/sniffer_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/sniffer_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/util.c:657:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/boreas/util.c:152:53: style: Parameter 'dst' can be declared as pointer to const [constParameter] gvm-libs-21.4.4/boreas/util_tests.c:29:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/boreas/util_tests.c:32:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/gmp/gmp.c:62:27: style:inconclusive: Function 'gmp_task_status' argument 1 names different: declaration 'status_response' definition 'response'. [funcArgNamesDifferent] gvm-libs-21.4.4/gmp/gmp.h:295:27: note: Function 'gmp_task_status' argument 1 names different: declaration 'status_response' definition 'response'. gvm-libs-21.4.4/gmp/gmp.c:62:27: note: Function 'gmp_task_status' argument 1 names different: declaration 'status_response' definition 'response'. gvm-libs-21.4.4/gmp/gmp.c:1295:15: style: Local variable 'ret' shadows outer variable [shadowVariable] gvm-libs-21.4.4/gmp/gmp.c:1277:7: note: Shadowed declaration gvm-libs-21.4.4/gmp/gmp.c:1295:15: note: Shadow variable gvm-libs-21.4.4/osp/osp_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/osp/osp_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/util/kb.c:1041:19: warning: Either the condition '!rep' is redundant or there is possible null pointer dereference: rep. [nullPointerRedundantCheck] gvm-libs-21.4.4/util/kb.c:1050:11: note: Assuming that condition '!rep' is not redundant gvm-libs-21.4.4/util/kb.c:1041:19: note: Null pointer dereference gvm-libs-21.4.4/util/kb.c:1044:19: warning: Either the condition '!rep' is redundant or there is possible null pointer dereference: rep. [nullPointerRedundantCheck] gvm-libs-21.4.4/util/kb.c:1050:11: note: Assuming that condition '!rep' is not redundant gvm-libs-21.4.4/util/kb.c:1044:19: note: Null pointer dereference gvm-libs-21.4.4/util/passwordbasedauthentication.c:205:3: warning:inconclusive: The buffer 'result' may not be null-terminated after the call to strncpy(). [terminateStrncpy] gvm-libs-21.4.4/util/passwordbasedauthentication.c:224:44: style:inconclusive: Function 'pba_verify_hash' argument 1 names different: declaration 'settings' definition 'setting'. [funcArgNamesDifferent] gvm-libs-21.4.4/util/passwordbasedauthentication.h:82:44: note: Function 'pba_verify_hash' argument 1 names different: declaration 'settings' definition 'setting'. gvm-libs-21.4.4/util/passwordbasedauthentication.c:224:44: note: Function 'pba_verify_hash' argument 1 names different: declaration 'settings' definition 'setting'. gvm-libs-21.4.4/util/passwordbasedauthentication_tests.c:29:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/util/passwordbasedauthentication_tests.c:32:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/util/serverutils.c:560:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gvm-libs-21.4.4/util/serverutils.c:340:32: style: Local variable 'address' shadows outer variable [shadowVariable] gvm-libs-21.4.4/util/serverutils.c:57:20: note: Shadowed declaration gvm-libs-21.4.4/util/serverutils.c:340:32: note: Shadow variable gvm-libs-21.4.4/util/xmlutils.c:257:15: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] gvm-libs-21.4.4/util/xmlutils.c:255:24: note: outer condition: *values gvm-libs-21.4.4/util/xmlutils.c:257:15: note: identical inner condition: *values gvm-libs-21.4.4/util/xmlutils.c:1396:48: style:inconclusive: Function 'print_entity_format' argument 2 names different: declaration 'indentation' definition 'indent'. [funcArgNamesDifferent] gvm-libs-21.4.4/util/xmlutils.h:112:41: note: Function 'print_entity_format' argument 2 names different: declaration 'indentation' definition 'indent'. gvm-libs-21.4.4/util/xmlutils.c:1396:48: note: Function 'print_entity_format' argument 2 names different: declaration 'indentation' definition 'indent'. gvm-libs-21.4.4/util/xmlutils_tests.c:28:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/util/xmlutils_tests.c:31:1: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] gvm-libs-21.4.4/util/xmlutils_tests.c:176:12: style: Variable 'children' is assigned a value that is never used. [unreadVariable] diff: head gvm-libs-21.4.4/boreas/ping.c:145:41: style: Parameter 'dst' can be declared as pointer to const [constParameter] 2.8 gvm-libs-21.4.4/boreas/ping.c:145:41: style: Parameter 'dst' can be declared with const [constParameter] head gvm-libs-21.4.4/boreas/ping.c:196:40: style: Parameter 'dst' can be declared as pointer to const [constParameter] 2.8 gvm-libs-21.4.4/boreas/ping.c:196:40: style: Parameter 'dst' can be declared with const [constParameter] head gvm-libs-21.4.4/boreas/ping.c:332:39: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head gvm-libs-21.4.4/boreas/util.c:152:53: style: Parameter 'dst' can be declared as pointer to const [constParameter] 2.8 gvm-libs-21.4.4/boreas/util.c:152:53: style: Parameter 'dst' can be declared with const [constParameter] DONE