2022-06-24 13:28 ftp://ftp.de.debian.org/debian/pool/main/p/procps/procps_4.0.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j4 platform: Linux-5.10.0-15-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.25 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.8 head-info: 11860cc (2022-06-24 13:55:04 +0200) count: 161 162 elapsed-time: 8.9 9.3 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: procps-4.0.0/contrib/minimal.c:538:9: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] procps-4.0.0/contrib/minimal.c:661:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] procps-4.0.0/contrib/minimal.c:574:5: portability: %ld in format string (no. 8) requires 'long' but the argument type is 'long int {aka unsigned long}'. [invalidPrintfArgType_sint] procps-4.0.0/contrib/minimal.c:595:5: warning: %ld in format string (no. 5) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] procps-4.0.0/contrib/minimal.c:615:5: warning: %ld in format string (no. 6) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] procps-4.0.0/contrib/utmp.c:162:60: warning: Found suspicious operator ',', result is not used. [constStatement] procps-4.0.0/contrib/utmp.c:174:51: warning: Found suspicious operator ',', result is not used. [constStatement] procps-4.0.0/lib/signals.c:145:20: warning: Either the condition 'row<0' is redundant or the array 'sigtable[31]' is accessed at index 31, which is out of bounds. [arrayIndexOutOfBoundsCond] procps-4.0.0/lib/signals.c:143:13: note: Assuming that condition 'row<0' is not redundant procps-4.0.0/lib/signals.c:145:20: note: Array index out of bounds procps-4.0.0/lib/signals.c:152:20: warning: Either the condition 'row<0' is redundant or the array 'sigtable[31]' is accessed at index 31, which is out of bounds. [arrayIndexOutOfBoundsCond] procps-4.0.0/lib/signals.c:150:13: note: Assuming that condition 'row<0' is not redundant procps-4.0.0/lib/signals.c:152:20: note: Array index out of bounds procps-4.0.0/free.c:449:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] procps-4.0.0/free.c:126:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] procps-4.0.0/lib/test_strtod_nol.c:33:12: style: Unused variable: val [unusedVariable] procps-4.0.0/pidof.c:265:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] procps-4.0.0/pidof.c:289:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] procps-4.0.0/proc/devname.c:133:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:135:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:227:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:230:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:232:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:233:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:234:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:235:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:236:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:237:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:238:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:239:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:240:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:241:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:242:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:243:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:244:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:245:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:246:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:247:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:252:22: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:254:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:255:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:256:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:257:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:258:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:259:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:260:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:261:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:269:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:270:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:271:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:272:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:273:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/devname.c:274:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] procps-4.0.0/proc/diskstats.c:514:43: error: There is an unknown macro here somewhere. Configuration is required. If STRINGIFY is a macro then please configure it. [unknownMacro] procps-4.0.0/pgrep.c:329:11: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] procps-4.0.0/pgrep.c:346:11: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] procps-4.0.0/pgrep.c:510:9: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] procps-4.0.0/pgrep.c:584:21: style: Variable 'cmdline' is allocated memory that is never used. [unusedAllocatedMemory] procps-4.0.0/pmap.c:865:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] procps-4.0.0/pmap.c:868:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] procps-4.0.0/pmap.c:884:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] procps-4.0.0/pmap.c:887:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] procps-4.0.0/pmap.c:330:8: style: Condition '!ret' is always false [knownConditionTrueFalse] procps-4.0.0/pmap.c:543:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] procps-4.0.0/pmap.c:546:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] procps-4.0.0/pmap.c:550:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] procps-4.0.0/pmap.c:721:4: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] procps-4.0.0/pmap.c:778:5: error: Memory pointed to by 'buf' is freed twice. [doubleFree] procps-4.0.0/pmap.c:774:9: note: Memory pointed to by 'buf' is freed twice. procps-4.0.0/pmap.c:778:5: note: Memory pointed to by 'buf' is freed twice. procps-4.0.0/pmap.c:759:21: warning: Either the condition 'optarg' is redundant or there is possible null pointer dereference: optarg. [nullPointerRedundantCheck] procps-4.0.0/pmap.c:761:16: note: Assuming that condition 'optarg' is not redundant procps-4.0.0/pmap.c:759:21: note: Null pointer dereference procps-4.0.0/proc/pwcache.c:60:10: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] procps-4.0.0/proc/pwcache.c:89:10: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] procps-4.0.0/contrib/tmp-junk.c:318:36: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] procps-4.0.0/contrib/tmp-junk.c:310:26: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] procps-4.0.0/contrib/tmp-junk.c:712:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/proc/readproc.c:160:7: error: syntax error [syntaxError] procps-4.0.0/contrib/tmp-junk.c:714:17: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/contrib/tmp-junk.c:295:6: style: Redundant condition: search_name[0]!='\0'. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] procps-4.0.0/contrib/tmp-junk.c:386:7: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] procps-4.0.0/contrib/tmp-junk.c:572:38: error: Undefined behavior: Variable 'out_line' is used as parameter and destination in sprintf(). [sprintfOverlappingData] procps-4.0.0/contrib/tmp-junk.c:574:38: error: Undefined behavior: Variable 'out_line' is used as parameter and destination in sprintf(). [sprintfOverlappingData] procps-4.0.0/contrib/tmp-junk.c:578:31: error: Undefined behavior: Variable 'out_line' is used as parameter and destination in sprintf(). [sprintfOverlappingData] procps-4.0.0/contrib/tmp-junk.c:586:37: error: Undefined behavior: Variable 'out_line' is used as parameter and destination in sprintf(). [sprintfOverlappingData] procps-4.0.0/contrib/tmp-junk.c:589:36: error: Undefined behavior: Variable 'out_line' is used as parameter and destination in sprintf(). [sprintfOverlappingData] procps-4.0.0/contrib/tmp-junk.c:594:37: error: Undefined behavior: Variable 'out_line' is used as parameter and destination in sprintf(). [sprintfOverlappingData] procps-4.0.0/contrib/tmp-junk.c:597:36: error: Undefined behavior: Variable 'out_line' is used as parameter and destination in sprintf(). [sprintfOverlappingData] procps-4.0.0/contrib/tmp-junk.c:601:38: error: Undefined behavior: Variable 'out_line' is used as parameter and destination in sprintf(). [sprintfOverlappingData] procps-4.0.0/proc/pids.c:159:1: error: There is an unknown macro here somewhere. Configuration is required. If STRINGIFY is a macro then please configure it. [unknownMacro] procps-4.0.0/proc/slabinfo.c:417:24: error: There is an unknown macro here somewhere. Configuration is required. If STRINGIFY is a macro then please configure it. [unknownMacro] procps-4.0.0/proc/sysinfo.c:98:10: style: Unused variable: hz [unusedVariable] procps-4.0.0/proc/uptime.c:242:19: style: Redundant condition: !upminutes. 'upminutes || (!upminutes && uptime_secs<60)' is equivalent to 'upminutes || uptime_secs<60' [redundantCondition] procps-4.0.0/proc/uptime.c:138:9: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] procps-4.0.0/proc/uptime.c:243:13: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] procps-4.0.0/proc/uptime.c:246:15: style: Variable 'comma' is assigned a value that is never used. [unreadVariable] procps-4.0.0/proc/stat.c:444:25: style: Parameter 'items' can be declared as pointer to const [constParameter] procps-4.0.0/proc/stat.c:1133:27: style: Parameter 'info' can be declared as pointer to const [constParameter] procps-4.0.0/proc/stat.c:740:29: portability: '(void*)p_blob' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/stat.c:742:29: portability: '(void*)p_vect' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/stat.c:743:21: portability: 'v_head' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/stat.c:749:16: portability: 'v_list' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/stat.c:750:16: portability: 'v_head' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/ps/display.c:364:12: style: Redundant initialization for 'tmp_list'. The initialized value is overwritten before it is read. [redundantInitialization] procps-4.0.0/ps/display.c:348:23: note: tmp_list is initialized procps-4.0.0/ps/display.c:364:12: note: tmp_list is overwritten procps-4.0.0/ps/global.c:302:9: error: syntax error [syntaxError] procps-4.0.0/ps/parser.c:791:11: error: syntax error [syntaxError] procps-4.0.0/ps/sortformat.c:112:23: warning: Either the condition '!fnode' is redundant or there is possible null pointer dereference: endp. [nullPointerRedundantCheck] procps-4.0.0/ps/sortformat.c:111:6: note: Assuming that condition '!fnode' is not redundant procps-4.0.0/ps/sortformat.c:112:10: note: Assignment 'endp=fnode', assigned value is 0 procps-4.0.0/ps/sortformat.c:112:23: note: Null pointer dereference procps-4.0.0/ps/sortformat.c:262:23: warning: Either the condition '!walk' is redundant or there is possible null pointer dereference: walk. [nullPointerRedundantCheck] procps-4.0.0/ps/sortformat.c:261:8: note: Assuming that condition '!walk' is not redundant procps-4.0.0/ps/sortformat.c:262:23: note: Null pointer dereference procps-4.0.0/ps/sortformat.c:311:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] procps-4.0.0/ps/stacktrace.c:76:16: warning: Return value of function dup() is not used. [ignoredReturnValue] procps-4.0.0/ps/stacktrace.c:77:16: warning: Return value of function dup() is not used. [ignoredReturnValue] procps-4.0.0/ps/stacktrace.c:78:16: warning: Return value of function dup() is not used. [ignoredReturnValue] procps-4.0.0/ps/stacktrace.c:172:9: style: Condition 'x' is always true [knownConditionTrueFalse] procps-4.0.0/ps/stacktrace.c:171:7: note: Assignment 'x=1', assigned value is 1 procps-4.0.0/ps/stacktrace.c:172:9: note: Condition 'x' is always true procps-4.0.0/ps/output.c:1069:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/ps/output.c:1073:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/ps/output.c:348:6: style: Condition '!*p' is always false [knownConditionTrueFalse] procps-4.0.0/ps/output.c:1078:10: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] procps-4.0.0/ps/output.c:2184:22: style: Checking if unsigned expression 'max_rightward' is less than zero. [unsignedLessThanZero] procps-4.0.0/ps/output.c:2188:21: style: Checking if unsigned expression 'max_leftward' is less than zero. [unsignedLessThanZero] procps-4.0.0/ps/output.c:2067:18: error: Uninitialized variables: &key.head, &key.pr, &key.sr, &key.width, &key.vendor, &key.flags [uninitvar] procps-4.0.0/ps/output.c:2075:18: error: Uninitialized variable: &key.head [uninitvar] procps-4.0.0/ps/output.c:480:8: style: Variable 'endp' is assigned a value that is never used. [unreadVariable] procps-4.0.0/ps/output.c:1430:17: style: Variable 'ps_freecon' is not assigned a value. [unassignedVariable] procps-4.0.0/ps/output.c:1431:16: style: Variable 'ps_getpidcon' is not assigned a value. [unassignedVariable] procps-4.0.0/ps/output.c:1436:14: style: Variable 'selinux_enabled' is not assigned a value. [unassignedVariable] procps-4.0.0/ps/output.c:2136:16: style: Variable 'amount' is assigned a value that is never used. [unreadVariable] procps-4.0.0/ps/output.c:2140:16: style: Variable 'legit' is assigned a value that is never used. [unreadVariable] procps-4.0.0/ps/output.c:2142:16: style: Variable 'tmpspace' is assigned a value that is never used. [unreadVariable] procps-4.0.0/skill.c:478:31: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] procps-4.0.0/skill.c:286:19: warning: Either the condition '(reap=procps_pids_reap(Pids_info,PIDS_FETCH_TASKS_ONLY))==NULL' is redundant or there is possible null pointer dereference: reap. [nullPointerRedundantCheck] procps-4.0.0/skill.c:282:69: note: Assuming that condition '(reap=procps_pids_reap(Pids_info,PIDS_FETCH_TASKS_ONLY))==NULL' is not redundant procps-4.0.0/skill.c:286:19: note: Null pointer dereference procps-4.0.0/skill.c:130:63: style: Parameter 'list' can be declared as pointer to const [constParameter] procps-4.0.0/skill.c:120:9: warning:inconclusive: Division of result of sizeof() on pointer type. [divideSizeof] procps-4.0.0/skill.c:439:13: warning:inconclusive: Division of result of sizeof() on pointer type. [divideSizeof] procps-4.0.0/skill.c:529:13: warning:inconclusive: Division of result of sizeof() on pointer type. [divideSizeof] procps-4.0.0/sysctl.c:495:3: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] procps-4.0.0/sysctl.c:496:3: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] procps-4.0.0/sysctl.c:497:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] procps-4.0.0/sysctl.c:816:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] procps-4.0.0/top/top.c:843:0: error: failed to expand 'PUTT', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] procps-4.0.0/uptime.c:51:18: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/uptime.c:121:20: warning: Either the condition '!uptime_str' is redundant or there is possible null pointer dereference: uptime_str. [nullPointerRedundantCheck] procps-4.0.0/uptime.c:118:9: note: Assuming that condition '!uptime_str' is not redundant procps-4.0.0/uptime.c:121:20: note: Null pointer dereference procps-4.0.0/proc/meminfo.c:500:28: style: Parameter 'items' can be declared as pointer to const [constParameter] procps-4.0.0/proc/meminfo.c:766:29: portability: '(void*)p_blob' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/meminfo.c:768:29: portability: '(void*)p_vect' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/meminfo.c:769:21: portability: 'v_head' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/meminfo.c:775:16: portability: 'v_list' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/meminfo.c:776:16: portability: 'v_head' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/w.c:308:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/w.c:311:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/w.c:395:28: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] procps-4.0.0/w.c:409:19: warning: Either the condition '(reap=procps_pids_reap(info,PIDS_FETCH_TASKS_ONLY))==NULL' is redundant or there is possible null pointer dereference: reap. [nullPointerRedundantCheck] procps-4.0.0/w.c:406:64: note: Assuming that condition '(reap=procps_pids_reap(info,PIDS_FETCH_TASKS_ONLY))==NULL' is not redundant procps-4.0.0/w.c:409:19: note: Null pointer dereference procps-4.0.0/vmstat.c:321:18: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/vmstat.c:396:22: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/vmstat.c:473:22: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/vmstat.c:656:18: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/vmstat.c:694:22: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] procps-4.0.0/vmstat.c:583:15: style: Variable 'got' is assigned a value that is never used. [unreadVariable] procps-4.0.0/watch.c:966:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] procps-4.0.0/watch.c:969:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] procps-4.0.0/watch.c:327:17: style: Redundant initialization for 'endptr'. The initialized value is overwritten before it is read. [redundantInitialization] procps-4.0.0/watch.c:290:26: note: endptr is initialized procps-4.0.0/watch.c:327:17: note: endptr is overwritten procps-4.0.0/watch.c:297:5: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] procps-4.0.0/watch.c:296:5: note: c is assigned procps-4.0.0/watch.c:297:5: note: c is overwritten procps-4.0.0/watch.c:472:22: style: Variable 'command_columns' is assigned a value that is never used. [unreadVariable] procps-4.0.0/proc/vmstat.c:941:27: style: Parameter 'items' can be declared as pointer to const [constParameter] procps-4.0.0/proc/vmstat.c:1260:29: portability: '(void*)p_blob' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/vmstat.c:1262:29: portability: '(void*)p_vect' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/vmstat.c:1263:21: portability: 'v_head' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/vmstat.c:1269:16: portability: 'v_list' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] procps-4.0.0/proc/vmstat.c:1270:16: portability: 'v_head' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] diff: head procps-4.0.0/proc/meminfo.c:500:28: style: Parameter 'items' can be declared as pointer to const [constParameter] 2.8 procps-4.0.0/proc/meminfo.c:500:28: style: Parameter 'items' can be declared with const [constParameter] head procps-4.0.0/proc/stat.c:1133:27: style: Parameter 'info' can be declared as pointer to const [constParameter] 2.8 procps-4.0.0/proc/stat.c:1133:27: style: Parameter 'info' can be declared with const [constParameter] head procps-4.0.0/proc/stat.c:444:25: style: Parameter 'items' can be declared as pointer to const [constParameter] 2.8 procps-4.0.0/proc/stat.c:444:25: style: Parameter 'items' can be declared with const [constParameter] head procps-4.0.0/proc/vmstat.c:941:27: style: Parameter 'items' can be declared as pointer to const [constParameter] 2.8 procps-4.0.0/proc/vmstat.c:941:27: style: Parameter 'items' can be declared with const [constParameter] head procps-4.0.0/skill.c:130:63: style: Parameter 'list' can be declared as pointer to const [constParameter] 2.8 procps-4.0.0/skill.c:130:63: style: Parameter 'list' can be declared with const [constParameter] 2.8 procps-4.0.0/sysctl.c:859:8: warning: Either the condition 'cfgs' is redundant or there is possible null pointer dereference: cfgs. [nullPointerRedundantCheck] procps-4.0.0/sysctl.c:838:8: note: Assuming that condition 'cfgs' is not redundant procps-4.0.0/sysctl.c:859:8: note: Null pointer dereference DONE