2022-06-25 09:17 ftp://ftp.de.debian.org/debian/pool/main/s/stress-ng/stress-ng_0.14.02.orig.tar.xz 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: 63e567e (2022-06-25 08:38:17 +0200) count: 183 179 elapsed-time: 20.1 19.8 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: stress-ng-0.14.02/core-helper.c:1227:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] stress-ng-0.14.02/core-helper.c:1552:13: style: Condition 'opened==0' is always true [knownConditionTrueFalse] stress-ng-0.14.02/core-helper.c:1551:32: note: Assignment 'opened=stress_get_open_count()', assigned value is 0 stress-ng-0.14.02/core-helper.c:1552:13: note: Condition 'opened==0' is always true stress-ng-0.14.02/core-helper.c:2717:11: style: Condition '8192>min' is always true [knownConditionTrueFalse] stress-ng-0.14.02/core-helper.c:2702:37: note: Assignment 'min=stress_min_aux_sig_stack_size()', assigned value is -1 stress-ng-0.14.02/core-helper.c:2717:11: note: Condition '8192>min' is always true stress-ng-0.14.02/core-helper.c:1501:9: style: The comparison 'max_rlim < max_sysconf' is always false because 'max_rlim' and 'max_sysconf' represent the same value. [knownConditionTrueFalse] stress-ng-0.14.02/core-helper.c:1483:20: note: 'max_rlim' is assigned value 'SIZE_MAX' here. stress-ng-0.14.02/core-helper.c:1497:16: note: 'max_sysconf' is assigned value 'SIZE_MAX' here. stress-ng-0.14.02/core-helper.c:1501:9: note: The comparison 'max_rlim < max_sysconf' is always false because 'max_rlim' and 'max_sysconf' represent the same value. stress-ng-0.14.02/core-helper.c:1501:9: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] stress-ng-0.14.02/core-helper.c:1483:20: note: 'max_rlim' is assigned value 'SIZE_MAX' here. stress-ng-0.14.02/core-helper.c:1497:16: note: 'max_sysconf' is assigned value 'SIZE_MAX' here. stress-ng-0.14.02/core-helper.c:1501:9: note: Same expression in both branches of ternary operator. stress-ng-0.14.02/core-helper.c:1209:28: style:inconclusive: Function 'pr_yaml_runinfo' argument 1 names different: declaration 'fp' definition 'yaml'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:736:35: note: Function 'pr_yaml_runinfo' argument 1 names different: declaration 'fp' definition 'yaml'. stress-ng-0.14.02/core-helper.c:1209:28: note: Function 'pr_yaml_runinfo' argument 1 names different: declaration 'fp' definition 'yaml'. stress-ng-0.14.02/core-helper.c:1721:39: style:inconclusive: Function 'stress_handle_stop_stressing' argument 1 names different: declaration 'dummy' definition 'signum'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:2827:46: note: Function 'stress_handle_stop_stressing' argument 1 names different: declaration 'dummy' definition 'signum'. stress-ng-0.14.02/core-helper.c:1721:39: note: Function 'stress_handle_stop_stressing' argument 1 names different: declaration 'dummy' definition 'signum'. stress-ng-0.14.02/core-helper.c:2301:73: style:inconclusive: Function 'stress_ipv4_checksum' argument 2 names different: declaration 'n' definition 'sz'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:2864:78: note: Function 'stress_ipv4_checksum' argument 2 names different: declaration 'n' definition 'sz'. stress-ng-0.14.02/core-helper.c:2301:73: note: Function 'stress_ipv4_checksum' argument 2 names different: declaration 'n' definition 'sz'. stress-ng-0.14.02/core-ignite-cpu.c:43:11: style: struct member 'stress_cpu_setting_t::cur_freq' is never used. [unusedStructMember] stress-ng-0.14.02/core-job.c:153:7: style: Condition '!*ptr' is always false [knownConditionTrueFalse] stress-ng-0.14.02/core-lock.c:438:2: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] stress-ng-0.14.02/core-log.c:181:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] stress-ng-0.14.02/core-log.c:41:20: style:inconclusive: Function 'pr_lock' argument 1 names different: declaration 'locked' definition 'lock'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:751:27: note: Function 'pr_lock' argument 1 names different: declaration 'locked' definition 'lock'. stress-ng-0.14.02/core-log.c:41:20: note: Function 'pr_lock' argument 1 names different: declaration 'locked' definition 'lock'. stress-ng-0.14.02/core-log.c:66:22: style:inconclusive: Function 'pr_unlock' argument 1 names different: declaration 'locked' definition 'lock'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:752:29: note: Function 'pr_unlock' argument 1 names different: declaration 'locked' definition 'lock'. stress-ng-0.14.02/core-log.c:66:22: note: Function 'pr_unlock' argument 1 names different: declaration 'locked' definition 'lock'. stress-ng-0.14.02/core-log.c:288:24: style:inconclusive: Function 'pr_dbg_lock' argument 1 names different: declaration 'locked' definition 'lock'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:754:31: note: Function 'pr_dbg_lock' argument 1 names different: declaration 'locked' definition 'lock'. stress-ng-0.14.02/core-log.c:288:24: note: Function 'pr_dbg_lock' argument 1 names different: declaration 'locked' definition 'lock'. stress-ng-0.14.02/core-log.c:331:24: style:inconclusive: Function 'pr_inf_lock' argument 1 names different: declaration 'locked' definition 'lock'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:753:31: note: Function 'pr_inf_lock' argument 1 names different: declaration 'locked' definition 'lock'. stress-ng-0.14.02/core-log.c:331:24: note: Function 'pr_inf_lock' argument 1 names different: declaration 'locked' definition 'lock'. stress-ng-0.14.02/core-out-of-memory.c:305:17: style: Condition 'pid==0' is always true [knownConditionTrueFalse] stress-ng-0.14.02/core-out-of-memory.c:215:10: note: Assuming that condition 'pid<0' is not redundant stress-ng-0.14.02/core-out-of-memory.c:223:17: note: Assuming that condition 'pid>0' is not redundant stress-ng-0.14.02/core-out-of-memory.c:305:17: note: Condition 'pid==0' is always true stress-ng-0.14.02/core-out-of-memory.c:188:0: style:inconclusive: Function 'stress_oomable_child' argument 4 names different: declaration 'flag' definition 'context'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:2725:61: note: Function 'stress_oomable_child' argument 4 names different: declaration 'flag' definition 'context'. stress-ng-0.14.02/core-out-of-memory.c:188:0: note: Function 'stress_oomable_child' argument 4 names different: declaration 'flag' definition 'context'. stress-ng-0.14.02/core-shim.c:735:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stress-ng-0.14.02/core-shim.c:781:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stress-ng-0.14.02/core-shim.c:808:28: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] stress-ng-0.14.02/core-shim.c:984:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] stress-ng-0.14.02/core-shim.c:1001:51: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] stress-ng-0.14.02/core-shim.c:708:36: style:inconclusive: Function 'shim_nanosleep_uint64' argument 1 names different: declaration 'usec' definition 'nsec'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:3182:43: note: Function 'shim_nanosleep_uint64' argument 1 names different: declaration 'usec' definition 'nsec'. stress-ng-0.14.02/core-shim.c:708:36: note: Function 'shim_nanosleep_uint64' argument 1 names different: declaration 'usec' definition 'nsec'. stress-ng-0.14.02/core-smart.c:66:11: style: struct member 'stress_smart_raw_value_t::attr_id' is never used. [unusedStructMember] stress-ng-0.14.02/core-smart.c:67:11: style: struct member 'stress_smart_raw_value_t::attr_flags' is never used. [unusedStructMember] stress-ng-0.14.02/core-smart.c:68:11: style: struct member 'stress_smart_raw_value_t::current_value' is never used. [unusedStructMember] stress-ng-0.14.02/core-smart.c:69:11: style: struct member 'stress_smart_raw_value_t::worst_value' is never used. [unusedStructMember] stress-ng-0.14.02/core-smart.c:70:11: style: struct member 'stress_smart_raw_value_t::data' is never used. [unusedStructMember] stress-ng-0.14.02/core-smart.c:71:11: style: struct member 'stress_smart_raw_value_t::attr_data' is never used. [unusedStructMember] stress-ng-0.14.02/core-smart.c:72:11: style: struct member 'stress_smart_raw_value_t::threshold' is never used. [unusedStructMember] stress-ng-0.14.02/core-smart.c:76:10: style: struct member 'stress_smart_data_t::count' is never used. [unusedStructMember] stress-ng-0.14.02/core-smart.c:77:10: style: struct member 'stress_smart_data_t::size' is never used. [unusedStructMember] stress-ng-0.14.02/core-smart.c:78:27: style: struct member 'stress_smart_data_t::values' is never used. [unusedStructMember] stress-ng-0.14.02/core-thermal-zone.c:76:18: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] stress-ng-0.14.02/core-thermal-zone.c:201:52: style:inconclusive: Function 'stress_tz_dump' argument 2 names different: declaration 'procs_head' definition 'stressors_list'. [funcArgNamesDifferent] stress-ng-0.14.02/core-thermal-zone.h:28:59: note: Function 'stress_tz_dump' argument 2 names different: declaration 'procs_head' definition 'stressors_list'. stress-ng-0.14.02/core-thermal-zone.c:201:52: note: Function 'stress_tz_dump' argument 2 names different: declaration 'procs_head' definition 'stressors_list'. stress-ng-0.14.02/core-vmstat.c:89:41: style:inconclusive: Function 'stress_set_vmstat' argument 1 names different: declaration 'str' definition 'opt'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:2868:64: note: Function 'stress_set_vmstat' argument 1 names different: declaration 'str' definition 'opt'. stress-ng-0.14.02/core-vmstat.c:89:41: note: Function 'stress_set_vmstat' argument 1 names different: declaration 'str' definition 'opt'. stress-ng-0.14.02/core-vmstat.c:94:46: style:inconclusive: Function 'stress_set_thermalstat' argument 1 names different: declaration 'str' definition 'opt'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:2869:69: note: Function 'stress_set_thermalstat' argument 1 names different: declaration 'str' definition 'opt'. stress-ng-0.14.02/core-vmstat.c:94:46: note: Function 'stress_set_thermalstat' argument 1 names different: declaration 'str' definition 'opt'. stress-ng-0.14.02/core-vmstat.c:99:41: style:inconclusive: Function 'stress_set_iostat' argument 1 names different: declaration 'str' definition 'opt'. [funcArgNamesDifferent] stress-ng-0.14.02/stress-ng.h:2870:64: note: Function 'stress_set_iostat' argument 1 names different: declaration 'str' definition 'opt'. stress-ng-0.14.02/core-vmstat.c:99:41: note: Function 'stress_set_iostat' argument 1 names different: declaration 'str' definition 'opt'. stress-ng-0.14.02/stress-affinity.c:25:20: style: struct member 'stress_affinity_info_t::cpu' is never used. [unusedStructMember] stress-ng-0.14.02/stress-affinity.c:26:11: style: struct member 'stress_affinity_info_t::cpus' is never used. [unusedStructMember] stress-ng-0.14.02/stress-affinity.c:27:11: style: struct member 'stress_affinity_info_t::affinity_delay' is never used. [unusedStructMember] stress-ng-0.14.02/stress-affinity.c:28:11: style: struct member 'stress_affinity_info_t::affinity_sleep' is never used. [unusedStructMember] stress-ng-0.14.02/stress-affinity.c:29:8: style: struct member 'stress_affinity_info_t::affinity_rand' is never used. [unusedStructMember] stress-ng-0.14.02/stress-affinity.c:30:8: style: struct member 'stress_affinity_info_t::affinity_pin' is never used. [unusedStructMember] stress-ng-0.14.02/stress-cache.c:571:6: style: Condition 'mask' is always true [knownConditionTrueFalse] stress-ng-0.14.02/stress-cache.c:568:12: note: Assignment 'mask=1U<arg_huge' is always false [knownConditionTrueFalse] stress-ng-0.14.02/stress-env.c:54:12: note: Assignment 'arg_max=255', assigned value is 255 stress-ng-0.14.02/stress-env.c:61:14: note: Condition 'arg_max>arg_huge' is always false stress-ng-0.14.02/stress-env.c:63:14: style: Condition 'arg_max<1' is always false [knownConditionTrueFalse] stress-ng-0.14.02/stress-env.c:54:12: note: Assignment 'arg_max=255', assigned value is 255 stress-ng-0.14.02/stress-env.c:63:14: note: Condition 'arg_max<1' is always false stress-ng-0.14.02/stress-file-ioctl.c:503:7: style: Condition '!exercised' is always true [knownConditionTrueFalse] stress-ng-0.14.02/stress-file-ioctl.c:121:19: note: Assignment 'exercised=0', assigned value is 0 stress-ng-0.14.02/stress-file-ioctl.c:503:7: note: Condition '!exercised' is always true stress-ng-0.14.02/stress-filename.c:235:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] stress-ng-0.14.02/stress-filename.c:374:13: style: Condition 'sz_max==0' is always false [knownConditionTrueFalse] stress-ng-0.14.02/stress-filename.c:370:11: note: Assignment 'sz_max=256', assigned value is 256 stress-ng-0.14.02/stress-filename.c:374:13: note: Condition 'sz_max==0' is always false stress-ng-0.14.02/stress-filename.c:473:17: style: Condition 'pid==0' is always true [knownConditionTrueFalse] stress-ng-0.14.02/stress-filename.c:428:10: note: Assuming that condition 'pid<0' is not redundant stress-ng-0.14.02/stress-filename.c:437:17: note: Assuming that condition 'pid>0' is not redundant stress-ng-0.14.02/stress-filename.c:473:17: note: Condition 'pid==0' is always true stress-ng-0.14.02/stress-fork.c:191:10: style: Condition 'flags' is always false [knownConditionTrueFalse] stress-ng-0.14.02/stress-fork.c:177:18: note: Assignment 'flags=0', assigned value is 0 stress-ng-0.14.02/stress-fork.c:191:10: note: Condition 'flags' is always false stress-ng-0.14.02/stress-fstat.c:263:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] stress-ng-0.14.02/stress-fstat.c:56:23: style: struct member 'ctxt::args' is never used. [unusedStructMember] stress-ng-0.14.02/stress-funcret.c:41:11: style: struct member 'stress_uint8x32_t::data' is never used. [unusedStructMember] stress-ng-0.14.02/stress-funcret.c:45:11: style: struct member 'stress_uint8x128_t::data' is never used. [unusedStructMember] stress-ng-0.14.02/stress-funcret.c:49:11: style: struct member 'stress_uint64x128_t::data' is never used. [unusedStructMember] stress-ng-0.14.02/stress-get.c:201:9: style: Variable 'pid' is not assigned a value. [unassignedVariable] stress-ng-0.14.02/stress-hdd.c:479:27: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] stress-ng-0.14.02/stress-hdd.c:402:2: error: Invalid read() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] stress-ng-0.14.02/stress-hdd.c:461:2: error: Invalid write() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] stress-ng-0.14.02/stress-hdd.c:512:8: style: Condition 'i==0' is always true [knownConditionTrueFalse] stress-ng-0.14.02/stress-hdd.c:510:18: note: Assuming that condition 'i<(sizeof(hdd_opts)/sizeof(hdd_opts[0]))' is not redundant stress-ng-0.14.02/stress-hdd.c:512:8: note: Condition 'i==0' is always true stress-ng-0.14.02/stress-hdd.c:692:32: style: Modulo of one is always equal to zero [moduloofone] stress-ng-0.14.02/stress-hdd.c:75:12: style: struct member 'stress_hdd_opts_t::advice' is never used. [unusedStructMember] stress-ng-0.14.02/stress-l1cache.c:258:3: error: Memory leak: cache [memleak] stress-ng-0.14.02/stress-l1cache.c:292:6: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] stress-ng-0.14.02/stress-l1cache.c:314:6: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] stress-ng-0.14.02/stress-longjmp.c:43:2: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] stress-ng-0.14.02/stress-lsearch.c:95:42: style: Checking if unsigned expression 'i' is less than zero. [unsignedLessThanZero] stress-ng-0.14.02/stress-lsearch.c:87:14: note: Assignment 'n=0', assigned value is 0 stress-ng-0.14.02/stress-lsearch.c:95:42: note: Unsigned less than zero stress-ng-0.14.02/stress-memrate.c:697:3: error: Memory leak: context.stats [memleak] stress-ng-0.14.02/stress-mmap.c:351:19: warning: Invalid mmap() argument nr 2. The value is 0 but the valid values are '1:'. [invalidFunctionArg] stress-ng-0.14.02/stress-mmap.c:637:29: note: Calling function 'stress_mmap_invalid', 2nd argument '0' value is 0 stress-ng-0.14.02/stress-mmap.c:351:19: note: Invalid argument stress-ng-0.14.02/stress-mmap.c:365:19: warning:inconclusive: Invalid mmap() argument nr 2. The value is 0 but the valid values are '1:'. [invalidFunctionArg] stress-ng-0.14.02/stress-mmap.c:637:29: note: Calling function 'stress_mmap_invalid', 2nd argument '0' value is 0 stress-ng-0.14.02/stress-mmap.c:365:19: note: Invalid argument stress-ng-0.14.02/stress-mmap.c:628:39: error: Invalid munmap() argument nr 2. The value is 0 but the valid values are '1:'. [invalidFunctionArg] stress-ng-0.14.02/stress-mmap.c:657:22: error: Invalid munmap() argument nr 2. The value is 0 but the valid values are '1:'. [invalidFunctionArg] stress-ng-0.14.02/stress-mmap.c:367:9: error: Memory pointed to by 'length' is freed twice. [doubleFree] stress-ng-0.14.02/stress-mmap.c:353:9: note: Memory pointed to by 'length' is freed twice. stress-ng-0.14.02/stress-mmap.c:367:9: note: Memory pointed to by 'length' is freed twice. stress-ng-0.14.02/stress-mmap.c:813:4: error: Memory leak: context.fd [memleak] stress-ng-0.14.02/stress-mmap.c:657:16: error: Null pointer dereference [nullPointer] stress-ng-0.14.02/stress-mmap.c:658:16: error: Null pointer dereference [nullPointer] stress-ng-0.14.02/stress-mmap.c:433:24: style: Modulo of one is always equal to zero [moduloofone] stress-ng-0.14.02/stress-mmapaddr.c:144:66: error: Uninitialized variable: flags [uninitvar] stress-ng-0.14.02/stress-mmapaddr.c:131:7: note: Assuming condition is false stress-ng-0.14.02/stress-mmapaddr.c:144:66: note: Uninitialized variable: flags stress-ng-0.14.02/stress-munmap.c:23:23: style: struct member 'munmap_context_t::args' is never used. [unusedStructMember] stress-ng-0.14.02/stress-munmap.c:24:9: style: struct member 'munmap_context_t::page_shift' is never used. [unusedStructMember] stress-ng-0.14.02/stress-munmap.c:25:7: style: struct member 'munmap_context_t::exe_path' is never used. [unusedStructMember] stress-ng-0.14.02/stress-ng.c:1258:33: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] stress-ng-0.14.02/stress-ng.c:1305:35: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] stress-ng-0.14.02/stress-ng.c:2886:8: error: Memory pointed to by 'page_size' is freed twice. [doubleFree] stress-ng-0.14.02/stress-ng.c:2884:8: note: Memory pointed to by 'page_size' is freed twice. stress-ng-0.14.02/stress-ng.c:2886:8: note: Memory pointed to by 'page_size' is freed twice. stress-ng-0.14.02/stress-ng.c:2905:8: error: Memory pointed to by 'page_size' is freed twice. [doubleFree] stress-ng-0.14.02/stress-ng.c:2904:8: note: Memory pointed to by 'page_size' is freed twice. stress-ng-0.14.02/stress-ng.c:2905:8: note: Memory pointed to by 'page_size' is freed twice. stress-ng-0.14.02/stress-ng.c:2906:8: error: Memory pointed to by 'page_size' is freed twice. [doubleFree] stress-ng-0.14.02/stress-ng.c:2904:8: note: Memory pointed to by 'page_size' is freed twice. stress-ng-0.14.02/stress-ng.c:2906:8: note: Memory pointed to by 'page_size' is freed twice. stress-ng-0.14.02/stress-open.c:653:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] stress-ng-0.14.02/stress-open.c:346:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] stress-ng-0.14.02/stress-open.c:374:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] stress-ng-0.14.02/stress-pageswap.c:28:20: style: struct member 'page_info::self' is never used. [unusedStructMember] stress-ng-0.14.02/stress-pageswap.c:29:20: style: struct member 'page_info::next' is never used. [unusedStructMember] stress-ng-0.14.02/stress-pageswap.c:30:9: style: struct member 'page_info::size' is never used. [unusedStructMember] stress-ng-0.14.02/stress-resources.c:382:48: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] stress-ng-0.14.02/stress-revio.c:199:27: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] stress-ng-0.14.02/stress-revio.c:232:8: style: Condition 'i==0' is always true [knownConditionTrueFalse] stress-ng-0.14.02/stress-revio.c:230:18: note: Assuming that condition 'i<(sizeof(revio_opts)/sizeof(revio_opts[0]))' is not redundant stress-ng-0.14.02/stress-revio.c:232:8: note: Condition 'i==0' is always true stress-ng-0.14.02/stress-revio.c:365:32: style: Modulo of one is always equal to zero [moduloofone] stress-ng-0.14.02/stress-revio.c:62:12: style: struct member 'stress_revio_opts_t::advice' is never used. [unusedStructMember] stress-ng-0.14.02/stress-seek.c:311:3: error: Invalid lseek() argument nr 3. The value is -1 but the valid values are '0:2'. [invalidFunctionArg] stress-ng-0.14.02/stress-set.c:141:9: style: Unused variable: pid [unusedVariable] stress-ng-0.14.02/stress-shm.c:33:10: style: struct member 'stress_shm_msg_t::index' is never used. [unusedStructMember] stress-ng-0.14.02/stress-shm.c:34:7: style: struct member 'stress_shm_msg_t::shm_name' is never used. [unusedStructMember] stress-ng-0.14.02/stress-sock.c:275:39: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] stress-ng-0.14.02/stress-sock.c:417:3: error: Invalid recv() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] stress-ng-0.14.02/stress-sock.c:430:3: error: Invalid recvmsg() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] stress-ng-0.14.02/stress-sock.c:1237:3: error: Memory leak: mmap_buffer [memleak] stress-ng-0.14.02/stress-sockmany.c:324:3: error: Memory leak: sock_fds [memleak] stress-ng-0.14.02/stress-sparsematrix.c:220:6: style: Condition '!table' is always false [knownConditionTrueFalse] stress-ng-0.14.02/stress-sparsematrix.c:359:6: style: Condition '!table' is always false [knownConditionTrueFalse] stress-ng-0.14.02/stress-sysbadaddr.c:792:9: style: Obsolescent function 'utimes' called. It is recommended to use 'utimensat' instead. [prohibitedutimesCalled] stress-ng-0.14.02/stress-sysbadaddr.c:583:2: error: Returning/dereferencing 'fd' after it is deallocated / released [deallocret] stress-ng-0.14.02/stress-sysbadaddr.c:581:9: note: Returning/dereferencing 'fd' after it is deallocated / released stress-ng-0.14.02/stress-sysbadaddr.c:583:2: note: Returning/dereferencing 'fd' after it is deallocated / released stress-ng-0.14.02/stress-touch.c:120:27: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] stress-ng-0.14.02/stress-touch.c:187:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] stress-ng-0.14.02/stress-urandom.c:262:14: style: Condition 'ret<0' is always true [knownConditionTrueFalse] stress-ng-0.14.02/stress-urandom.c:243:13: note: Assignment 'ret=-1', assigned value is -1 stress-ng-0.14.02/stress-urandom.c:262:14: note: Condition 'ret<0' is always true stress-ng-0.14.02/stress-vforkmany.c:160:8: style: Condition 'flags' is always false [knownConditionTrueFalse] stress-ng-0.14.02/stress-vforkmany.c:149:16: note: Assignment 'flags=0', assigned value is 0 stress-ng-0.14.02/stress-vforkmany.c:160:8: note: Condition 'flags' is always false stress-ng-0.14.02/stress-vforkmany.c:214:10: style: Condition 'flags' is always false [knownConditionTrueFalse] stress-ng-0.14.02/stress-vforkmany.c:200:18: note: Assignment 'flags=0', assigned value is 0 stress-ng-0.14.02/stress-vforkmany.c:214:10: note: Condition 'flags' is always false stress-ng-0.14.02/stress-vforkmany.c:226:13: style: Condition 'pid>=1' is always true [knownConditionTrueFalse] stress-ng-0.14.02/stress-vforkmany.c:198:19: note: Assuming that condition 'pid==0' is not redundant stress-ng-0.14.02/stress-vforkmany.c:226:13: note: Condition 'pid>=1' is always true stress-ng-0.14.02/stress-vm-addr.c:434:3: error: Memory leak: context.bit_error_count [memleak] stress-ng-0.14.02/stress-vm-segv.c:134:18: style: Condition 'pid==0' is always true [knownConditionTrueFalse] stress-ng-0.14.02/stress-vm-segv.c:80:11: note: Assuming that condition 'pid<0' is not redundant stress-ng-0.14.02/stress-vm-segv.c:88:17: note: Assuming that condition 'pid>0' is not redundant stress-ng-0.14.02/stress-vm-segv.c:134:18: note: Condition 'pid==0' is always true stress-ng-0.14.02/stress-vm-segv.c:42:16: error: Null pointer dereference [nullPointer] stress-ng-0.14.02/stress-vm.c:607:8: style: Condition '*ptr!=d1' is always false [knownConditionTrueFalse] stress-ng-0.14.02/stress-vm.c:599:8: note: *ptr is assigned 'd1' here. stress-ng-0.14.02/stress-vm.c:603:64: note: Assuming condition is false stress-ng-0.14.02/stress-vm.c:607:8: note: Condition '*ptr!=d1' is always false stress-ng-0.14.02/stress-vm.c:661:8: style: Condition '*ptr!=d1' is always false [knownConditionTrueFalse] stress-ng-0.14.02/stress-vm.c:653:8: note: *ptr is assigned 'd1' here. stress-ng-0.14.02/stress-vm.c:657:64: note: Assuming condition is false stress-ng-0.14.02/stress-vm.c:661:8: note: Condition '*ptr!=d1' is always false stress-ng-0.14.02/stress-vm.c:2773:3: error: Memory leak: context.bit_error_count [memleak] stress-ng-0.14.02/stress-vm.c:2129:3: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] stress-ng-0.14.02/stress-vm.c:2134:3: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] stress-ng-0.14.02/stress-vm.c:2139:3: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] stress-ng-0.14.02/stress-vm.c:2144:3: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] stress-ng-0.14.02/stress-zero.c:110:3: error: Memory leak: rd_buffer [memleak] stress-ng-0.14.02/stress-zero.c:110:3: error: Memory leak: wr_buffer [memleak] stress-ng-0.14.02/test/test-accept4.c:36:17: error: Invalid accept4() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] stress-ng-0.14.02/test/test-accept4.c:28:12: note: Assignment 'fd=-1', assigned value is -1 stress-ng-0.14.02/test/test-accept4.c:36:17: note: Invalid argument stress-ng-0.14.02/test/test-asm-arm-yield.c:35:0: error: #error not an ARM so no yield instruction [preprocessorErrorDirective] stress-ng-0.14.02/test/test-asm-ppc64-darn.c:22:0: error: #error ppc64 darn instruction not supported [preprocessorErrorDirective] stress-ng-0.14.02/test/test-asm-riscv-fence.c:29:0: error: #error not RISC-V so no fence instruction [preprocessorErrorDirective] stress-ng-0.14.02/test/test-asm-x86-pause.c:30:0: error: #error not an x86 so no pause instruction [preprocessorErrorDirective] stress-ng-0.14.02/test/test-asm-x86-rdrand.c:39:0: error: #error not an x86 so no rdrand instruction [preprocessorErrorDirective] stress-ng-0.14.02/test/test-asm-x86-rdseed.c:38:0: error: #error not an x86 so no rdseed instruction [preprocessorErrorDirective] stress-ng-0.14.02/test/test-asm-x86-tpause.c:31:0: error: #error not an x86 so no tpause instruction [preprocessorErrorDirective] stress-ng-0.14.02/test/test-clock-getres.c:34:0: error: #error no POSIX clock types CLOCK_REALTIME or CLOCK_MONOTONIC [preprocessorErrorDirective] stress-ng-0.14.02/test/test-clock-gettime.c:34:0: error: #error no POSIX clock types CLOCK_REALTIME or CLOCK_MONOTONIC [preprocessorErrorDirective] stress-ng-0.14.02/test/test-clock-nanosleep.c:35:0: error: #error no POSIX clock types CLOCK_REALTIME or CLOCK_MONOTONIC [preprocessorErrorDirective] stress-ng-0.14.02/test/test-clock-settime.c:34:0: error: #error no POSIX clock types CLOCK_REALTIME or CLOCK_MONOTONIC [preprocessorErrorDirective] stress-ng-0.14.02/test/test-execveat.c:34:0: error: #error no execveat [preprocessorErrorDirective] stress-ng-0.14.02/test/test-fanotify.c:22:0: error: #error requires linux to build [preprocessorErrorDirective] stress-ng-0.14.02/test/test-futimens.c:28:0: error: #error futimens missing UTIME_NOW [preprocessorErrorDirective] stress-ng-0.14.02/test/test-getpgrp.c:36:0: error: #error need glib 2.19.0 or higher [preprocessorErrorDirective] stress-ng-0.14.02/test/test-getpwent.c:28:7: portability: Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'. [prohibitedgetpwentCalled] stress-ng-0.14.02/test/test-inotify.c:23:0: error: #error requires linux to build [preprocessorErrorDirective] stress-ng-0.14.02/test/test-int128_t.c:30:0: error: #error need GCC 4.0 or above [preprocessorErrorDirective] stress-ng-0.14.02/test/test-label-as-value.c:26:6: error: Syntax Error: AST broken, binary operator '=' doesn't have two operands. [internalAstError] stress-ng-0.14.02/test/test-libcrypt.c:37:14: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] stress-ng-0.14.02/test/test-libsctp.c:32:0: error: #error no SOL_SCTP [preprocessorErrorDirective] stress-ng-0.14.02/test/test-lookup-dcookie.c:26:0: error: #error __NR_lookup_dcookie syscall not defined [preprocessorErrorDirective] stress-ng-0.14.02/test/test-modify-ldt.c:29:0: error: #error modify_ldt syscall not defined [preprocessorErrorDirective] stress-ng-0.14.02/test/test-nanosleep.c:30:13: style: Variable 'rem.tv_sec' is assigned a value that is never used. [unreadVariable] stress-ng-0.14.02/test/test-nanosleep.c:31:14: style: Variable 'rem.tv_nsec' is assigned a value that is never used. [unreadVariable] stress-ng-0.14.02/test/test-pidfd-send-signal.c:26:0: error: #error __NR_pidfd_send_signal not defined [preprocessorErrorDirective] stress-ng-0.14.02/test/test-posix-fadvise.c:72:0: error: #error no POSIX_FADV advice macros defined! [preprocessorErrorDirective] stress-ng-0.14.02/test/test-sem-sysv.c:76:20: style: Variable 'semsignal.sem_num' is assigned a value that is never used. [unreadVariable] stress-ng-0.14.02/test/test-sem-sysv.c:77:19: style: Variable 'semsignal.sem_op' is assigned a value that is never used. [unreadVariable] stress-ng-0.14.02/test/test-sem-sysv.c:78:20: style: Variable 'semsignal.sem_flg' is assigned a value that is never used. [unreadVariable] stress-ng-0.14.02/test/test-sock-diag.c:59:0: error: #error sock_diag not supported [preprocessorErrorDirective] stress-ng-0.14.02/test/test-swapcontext.c:33:6: portability: Obsolescent function 'getcontext' called. Applications are recommended to be rewritten to use POSIX threads. [prohibitedgetcontextCalled] stress-ng-0.14.02/test/test-swapcontext.c:39:2: portability: Obsolescent function 'makecontext' called. Applications are recommended to be rewritten to use POSIX threads. [prohibitedmakecontextCalled] stress-ng-0.14.02/test/test-swapcontext.c:41:6: portability: Obsolescent function 'swapcontext' called. Applications are recommended to be rewritten to use POSIX threads. [prohibitedswapcontextCalled] stress-ng-0.14.02/test/test-target-clones.c:52:0: error: #error target clones attribute not supported [preprocessorErrorDirective] stress-ng-0.14.02/test/test-tee.c:30:28: error: Invalid tee() argument nr 3. The value is -1 but the valid values are '1:'. [invalidFunctionArg] stress-ng-0.14.02/test/test-timer-create.c:40:0: error: #error no POSIX clock types CLOCK_REALTIME or CLOCK_MONOTONIC [preprocessorErrorDirective] stress-ng-0.14.02/test/test-timerfd-create.c:34:0: error: #error no POSIX clock types CLOCK_REALTIME or CLOCK_MONOTONIC [preprocessorErrorDirective] stress-ng-0.14.02/test/test-ttyname.c:24:15: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] stress-ng-0.14.02/test/test-utime.c:26:9: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] stress-ng-0.14.02/test/test-utime.c:26:20: error: Uninitialized variable: &buf [uninitvar] diff: head stress-ng-0.14.02/stress-lsearch.c:95:42: style: Checking if unsigned expression 'i' is less than zero. [unsignedLessThanZero] stress-ng-0.14.02/stress-lsearch.c:87:14: note: Assignment 'n=0', assigned value is 0 stress-ng-0.14.02/stress-lsearch.c:95:42: note: Unsigned less than zero head stress-ng-0.14.02/stress-open.c:346:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head stress-ng-0.14.02/stress-open.c:374:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head stress-ng-0.14.02/stress-resources.c:382:48: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] DONE