2025-05-07 01:59 ftp://ftp.de.debian.org/debian/pool/main/p/pexec/pexec_1.0~rc8.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-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 8e656e5 (2025-05-06 23:42:00 +0200) count: 196 196 elapsed-time: 15.3 15.3 head-timing-info: old-timing-info: head results: pexec-1.0rc8/src/fifo.c:82:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/fifo.c:72:30: style:inconclusive: Function 'fifo_write' argument 2 names different: declaration 'buffer' definition 'vbuffer'. [funcArgNamesDifferent] pexec-1.0rc8/src/fifo.h:43:30: note: Function 'fifo_write' argument 2 names different: declaration 'buffer' definition 'vbuffer'. pexec-1.0rc8/src/fifo.c:72:30: note: Function 'fifo_write' argument 2 names different: declaration 'buffer' definition 'vbuffer'. pexec-1.0rc8/src/fifo.c:165:32: style:inconclusive: Function 'fifo_read' argument 2 names different: declaration 'buffer' definition 'vbuffer'. [funcArgNamesDifferent] pexec-1.0rc8/src/fifo.h:54:32: note: Function 'fifo_read' argument 2 names different: declaration 'buffer' definition 'vbuffer'. pexec-1.0rc8/src/fifo.c:165:32: note: Function 'fifo_read' argument 2 names different: declaration 'buffer' definition 'vbuffer'. pexec-1.0rc8/src/fifo.c:195:32: style:inconclusive: Function 'fifo_peek' argument 2 names different: declaration 'buffer' definition 'vbuffer'. [funcArgNamesDifferent] pexec-1.0rc8/src/fifo.h:64:32: note: Function 'fifo_peek' argument 2 names different: declaration 'buffer' definition 'vbuffer'. pexec-1.0rc8/src/fifo.c:195:32: note: Function 'fifo_peek' argument 2 names different: declaration 'buffer' definition 'vbuffer'. pexec-1.0rc8/src/fifo.c:206:33: style:inconclusive: Function 'fifo_flush' argument 2 names different: declaration 'buffer' definition 'vbuffer'. [funcArgNamesDifferent] pexec-1.0rc8/src/fifo.h:71:33: note: Function 'fifo_flush' argument 2 names different: declaration 'buffer' definition 'vbuffer'. pexec-1.0rc8/src/fifo.c:206:33: note: Function 'fifo_flush' argument 2 names different: declaration 'buffer' definition 'vbuffer'. pexec-1.0rc8/src/fifo.c:160:29: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/format.c:65:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/format.c:170:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/format.c:59:47: style: Parameter 'len' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/format.c:73:8: style: Variable 'fstart' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/format.c:106:50: style: Parameter 'fchars' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/format.c:130:85: style: Parameter 'vs' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/format.c:164:14: style: Variable 'fstart' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/format.c:75:8: style: Variable 'fstart' is assigned a value that is never used. [unreadVariable] pexec-1.0rc8/src/iof.c:62:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/iof.c:81:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/iof.c:103:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/iof.c:111:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/iof.c:119:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/iof.c:125:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/iof.c:61:9: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] pexec-1.0rc8/src/iof.c:100:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/iof.c:108:24: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/linebuffer.c:72:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/linebuffer.c:103:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/linebuffer.c:162:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/linebuffer.c:189:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/linebuffer.c:69:25: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] pexec-1.0rc8/src/linebuffer.c:67:49: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/linebuffer.c:81:14: style: Variable 'eoc' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/linebuffer.c:151:8: style: Variable 'eoc' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/longhelp.c:82:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/longhelp.c:187:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/longhelp.c:95:4: error: Common realloc mistake: 'rtokens' nulled but not freed upon failure [memleakOnRealloc] pexec-1.0rc8/src/longhelp.c:87:11: warning: If memory allocation fails, then there is a possible null pointer dereference: buff [nullPointerOutOfMemory] pexec-1.0rc8/src/longhelp.c:132:11: note: Assuming allocation function fails pexec-1.0rc8/src/longhelp.c:132:11: note: Assignment 'dd=strdup(desc)', assigned value is 0 pexec-1.0rc8/src/longhelp.c:133:26: note: Calling function 'tokenize_spaces_dyn', 1st argument 'dd' value is 0 pexec-1.0rc8/src/longhelp.c:82:2: note: Assuming condition is false pexec-1.0rc8/src/longhelp.c:87:11: note: Null pointer dereference pexec-1.0rc8/src/longhelp.c:181:46: style:inconclusive: Function 'longhelp_fprint' argument 2 names different: declaration 'entries' definition 'entry'. [funcArgNamesDifferent] pexec-1.0rc8/src/longhelp.h:49:46: note: Function 'longhelp_fprint' argument 2 names different: declaration 'entries' definition 'entry'. pexec-1.0rc8/src/longhelp.c:181:46: note: Function 'longhelp_fprint' argument 2 names different: declaration 'entries' definition 'entry'. pexec-1.0rc8/src/longhelp.c:131:8: style: Local variable 'w' shadows outer argument [shadowArgument] pexec-1.0rc8/src/longhelp.c:120:63: note: Shadowed declaration pexec-1.0rc8/src/longhelp.c:131:8: note: Shadow variable pexec-1.0rc8/src/longhelp.c:120:88: style: Parameter 'desc' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/numhash.c:142:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/numhash.c:71:41: style:inconclusive: Function 'numhash_search' argument 2 names different: declaration 'key' definition 'value'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:64:41: note: Function 'numhash_search' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:71:41: note: Function 'numhash_search' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:117:38: style:inconclusive: Function 'numhash_add' argument 2 names different: declaration 'key' definition 'value'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:57:38: note: Function 'numhash_add' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:117:38: note: Function 'numhash_add' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:176:41: style:inconclusive: Function 'numhash_remove' argument 2 names different: declaration 'key' definition 'value'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:71:41: note: Function 'numhash_remove' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:176:41: note: Function 'numhash_remove' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:464:49: style:inconclusive: Function 'numhash_first_wdata' argument 2 names different: declaration 'ret' definition 'dret'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:125:49: note: Function 'numhash_first_wdata' argument 2 names different: declaration 'ret' definition 'dret'. pexec-1.0rc8/src/numhash.c:464:49: note: Function 'numhash_first_wdata' argument 2 names different: declaration 'ret' definition 'dret'. pexec-1.0rc8/src/numhash.c:475:48: style:inconclusive: Function 'numhash_last_wdata' argument 2 names different: declaration 'ret' definition 'dret'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:126:48: note: Function 'numhash_last_wdata' argument 2 names different: declaration 'ret' definition 'dret'. pexec-1.0rc8/src/numhash.c:475:48: note: Function 'numhash_last_wdata' argument 2 names different: declaration 'ret' definition 'dret'. pexec-1.0rc8/src/numhash.c:605:45: style:inconclusive: Function 'numhash_next_wdata' argument 2 names different: declaration 'key' definition 'value'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:127:45: note: Function 'numhash_next_wdata' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:605:45: note: Function 'numhash_next_wdata' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:605:58: style:inconclusive: Function 'numhash_next_wdata' argument 3 names different: declaration 'ret' definition 'dret'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:127:56: note: Function 'numhash_next_wdata' argument 3 names different: declaration 'ret' definition 'dret'. pexec-1.0rc8/src/numhash.c:605:58: note: Function 'numhash_next_wdata' argument 3 names different: declaration 'ret' definition 'dret'. pexec-1.0rc8/src/numhash.c:613:45: style:inconclusive: Function 'numhash_prev_wdata' argument 2 names different: declaration 'key' definition 'value'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:128:45: note: Function 'numhash_prev_wdata' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:613:45: note: Function 'numhash_prev_wdata' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:613:58: style:inconclusive: Function 'numhash_prev_wdata' argument 3 names different: declaration 'ret' definition 'dret'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:128:56: note: Function 'numhash_prev_wdata' argument 3 names different: declaration 'ret' definition 'dret'. pexec-1.0rc8/src/numhash.c:613:58: note: Function 'numhash_prev_wdata' argument 3 names different: declaration 'ret' definition 'dret'. pexec-1.0rc8/src/numhash.c:621:39: style:inconclusive: Function 'numhash_next' argument 2 names different: declaration 'key' definition 'value'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:118:39: note: Function 'numhash_next' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:621:39: note: Function 'numhash_next' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:629:39: style:inconclusive: Function 'numhash_prev' argument 2 names different: declaration 'key' definition 'value'. [funcArgNamesDifferent] pexec-1.0rc8/src/numhash.h:119:39: note: Function 'numhash_prev' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:629:39: note: Function 'numhash_prev' argument 2 names different: declaration 'key' definition 'value'. pexec-1.0rc8/src/numhash.c:82:19: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 81. [shiftTooManyBitsSigned] pexec-1.0rc8/src/numhash.c:81:18: note: Assuming that condition 'nt->bitsize0' is always false [knownConditionTrueFalse] pexec-1.0rc8/src/pexec.c:553:7: note: Assignment 'ncpu=0', assigned value is 0 pexec-1.0rc8/src/pexec.c:565:30: note: Calling function 'get_number_of_cpus_sysconf' returns 0 pexec-1.0rc8/src/pexec.c:565:30: note: Assignment 'w=get_number_of_cpus_sysconf()', assigned value is 0 pexec-1.0rc8/src/pexec.c:566:8: note: Condition 'w>0' is always false pexec-1.0rc8/src/pexec.c:1037:19: style: Condition 'format!=NULL' is always true [knownConditionTrueFalse] pexec-1.0rc8/src/pexec.c:1037:33: style: Condition 'lb!=NULL' is always true [knownConditionTrueFalse] pexec-1.0rc8/src/pexec.c:2156:2: error: Memory leak: buff [memleak] pexec-1.0rc8/src/pexec.c:3225:2: error: Memory leak: buff [memleak] pexec-1.0rc8/src/pexec.c:3736:36: error: Memory leak: p.rshcmd [memleak] pexec-1.0rc8/src/pexec.c:4212:4: error: Resource leak: p.fwerr [resourceLeak] pexec-1.0rc8/src/pexec.c:4234:4: error: Resource leak: log.fwlog [resourceLeak] pexec-1.0rc8/src/pexec.c:380:2: warning: If memory allocation fails, then there is a possible null pointer dereference: command [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:378:25: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:378:10: note: Assignment 'command=(char*)xmalloc(16)', assigned value is 0 pexec-1.0rc8/src/pexec.c:380:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:834:6: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:831:24: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:831:8: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:834:6: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:846:6: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:831:24: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:831:8: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:846:6: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:849:3: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:831:24: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:831:8: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:849:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:851:10: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:831:24: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:831:8: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:851:10: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:854:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:831:24: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:831:8: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:854:16: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:867:6: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:865:24: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:865:8: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:867:6: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:868:3: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:865:24: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:865:8: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:868:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:870:10: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:865:24: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:865:8: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:870:10: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:873:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:865:24: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:865:8: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:873:16: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:889:5: warning: If memory allocation fails, then there is a possible null pointer dereference: args [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:887:23: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:887:7: note: Assignment 'args=(char**)xmalloc(sizeof(char*)*16)', assigned value is 0 pexec-1.0rc8/src/pexec.c:889:5: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1208:3: warning: If memory allocation fails, then there is a possible null pointer dereference: mx [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1207:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1207:8: note: Assignment 'mx=(struct imutex*)xmalloc(sizeof(struct imutex))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1208:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1209:3: warning: If memory allocation fails, then there is a possible null pointer dereference: mx [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1207:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1207:8: note: Assignment 'mx=(struct imutex*)xmalloc(sizeof(struct imutex))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1209:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1210:3: warning: If memory allocation fails, then there is a possible null pointer dereference: mx [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1207:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1207:8: note: Assignment 'mx=(struct imutex*)xmalloc(sizeof(struct imutex))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1210:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1211:3: warning: If memory allocation fails, then there is a possible null pointer dereference: mx [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1207:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1207:8: note: Assignment 'mx=(struct imutex*)xmalloc(sizeof(struct imutex))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1211:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1212:3: warning: If memory allocation fails, then there is a possible null pointer dereference: mx [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1207:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1207:8: note: Assignment 'mx=(struct imutex*)xmalloc(sizeof(struct imutex))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1212:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1326:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cc [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1325:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1325:5: note: Assignment 'cc=(struct child*)xmalloc(sizeof(struct child))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1326:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1327:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cc [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1325:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1325:5: note: Assignment 'cc=(struct child*)xmalloc(sizeof(struct child))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1327:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1328:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cc [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1325:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1325:5: note: Assignment 'cc=(struct child*)xmalloc(sizeof(struct child))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1328:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1331:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cc [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1325:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1325:5: note: Assignment 'cc=(struct child*)xmalloc(sizeof(struct child))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1331:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1768:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cl [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1767:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1767:8: note: Assignment 'cl=(struct client*)xmalloc(sizeof(struct client))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1768:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1770:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cl [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1767:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1767:8: note: Assignment 'cl=(struct client*)xmalloc(sizeof(struct client))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1770:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1771:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cl [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1767:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1767:8: note: Assignment 'cl=(struct client*)xmalloc(sizeof(struct client))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1771:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1815:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1814:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1814:5: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1815:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1816:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1814:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1814:5: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1816:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1817:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1814:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1814:5: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1817:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1819:38: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1814:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1814:5: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1819:38: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1837:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1836:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1836:8: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1837:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1838:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1836:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1836:8: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1838:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1839:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1836:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1836:8: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1839:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1840:44: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1836:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1836:8: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1840:44: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1866:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1865:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1865:8: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1866:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1867:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1865:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1865:8: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1867:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1868:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1865:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1865:8: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1868:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:1869:45: warning: If memory allocation fails, then there is a possible null pointer dereference: dq [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:1865:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:1865:8: note: Assignment 'dq=(struct dqueue*)xmalloc(sizeof(struct dqueue))', assigned value is 0 pexec-1.0rc8/src/pexec.c:1869:45: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2060:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cc [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2059:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2059:5: note: Assignment 'cc=(struct child*)xmalloc(sizeof(struct child))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2060:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2061:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cc [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2059:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2059:5: note: Assignment 'cc=(struct child*)xmalloc(sizeof(struct child))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2061:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2062:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cc [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2059:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2059:5: note: Assignment 'cc=(struct child*)xmalloc(sizeof(struct child))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2062:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2064:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cc [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2059:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2059:5: note: Assignment 'cc=(struct child*)xmalloc(sizeof(struct child))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2064:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2065:7: warning: If memory allocation fails, then there is a possible null pointer dereference: cc [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2059:5: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2059:5: note: Assignment 'cc=(struct child*)xmalloc(sizeof(struct child))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2065:7: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2386:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cl [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2385:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2385:8: note: Assignment 'cl=(struct client*)xmalloc(sizeof(struct client))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2386:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2388:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cl [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2385:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2385:8: note: Assignment 'cl=(struct client*)xmalloc(sizeof(struct client))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2388:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2389:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cl [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2385:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2385:8: note: Assignment 'cl=(struct client*)xmalloc(sizeof(struct client))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2389:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2583:5: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2581:23: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2581:7: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(n+32))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2583:5: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2586:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2581:23: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2581:7: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(n+32))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2586:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2587:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2581:23: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2581:7: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(n+32))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2587:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2588:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2581:23: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2581:7: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(n+32))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2588:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2608:5: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2581:23: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2581:7: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(n+32))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2608:5: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2610:3: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2581:23: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2581:7: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(n+32))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2610:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2616:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2581:23: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2581:7: note: Assignment 'argv=(char**)xmalloc(sizeof(char*)*(n+32))', assigned value is 0 pexec-1.0rc8/src/pexec.c:2616:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2727:9: warning: If memory allocation fails, then there is a possible null pointer dereference: hostname [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2726:18: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2726:18: note: Assignment 'hostname=xmalloc((unsigned long)(colon-ctrlport)+1)', assigned value is 0 pexec-1.0rc8/src/pexec.c:2727:9: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2728:2: warning: If memory allocation fails, then there is a possible null pointer dereference: hostname [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2726:18: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2726:18: note: Assignment 'hostname=xmalloc((unsigned long)(colon-ctrlport)+1)', assigned value is 0 pexec-1.0rc8/src/pexec.c:2728:2: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2729:21: warning: If memory allocation fails, then there is a possible null pointer dereference: hostname [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2726:18: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2726:18: note: Assignment 'hostname=xmalloc((unsigned long)(colon-ctrlport)+1)', assigned value is 0 pexec-1.0rc8/src/pexec.c:2729:21: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2873:10: warning: If memory allocation fails, then there is a possible null pointer dereference: hostname [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2872:27: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2872:12: note: Assignment 'hostname=(char*)xmalloc(len+1)', assigned value is 0 pexec-1.0rc8/src/pexec.c:2873:10: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2874:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hostname [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2872:27: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2872:12: note: Assignment 'hostname=(char*)xmalloc(len+1)', assigned value is 0 pexec-1.0rc8/src/pexec.c:2874:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:2875:22: warning: If memory allocation fails, then there is a possible null pointer dereference: hostname [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:2872:27: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:2872:12: note: Assignment 'hostname=(char*)xmalloc(len+1)', assigned value is 0 pexec-1.0rc8/src/pexec.c:2875:22: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:3010:6: warning: If memory allocation fails, then there is a possible null pointer dereference: largv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:3008:25: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:3008:9: note: Assignment 'largv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:3010:6: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:3011:3: warning: If memory allocation fails, then there is a possible null pointer dereference: largv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:3008:25: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:3008:9: note: Assignment 'largv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:3011:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:3013:10: warning: If memory allocation fails, then there is a possible null pointer dereference: largv [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:3008:25: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:3008:9: note: Assignment 'largv=(char**)xmalloc(sizeof(char*)*(argc+1))', assigned value is 0 pexec-1.0rc8/src/pexec.c:3013:10: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:3317:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cl [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:3316:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:3316:8: note: Assignment 'cl=(struct client*)xmalloc(sizeof(struct client))', assigned value is 0 pexec-1.0rc8/src/pexec.c:3317:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:3319:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cl [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:3316:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:3316:8: note: Assignment 'cl=(struct client*)xmalloc(sizeof(struct client))', assigned value is 0 pexec-1.0rc8/src/pexec.c:3319:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:3320:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cl [nullPointerOutOfMemory] pexec-1.0rc8/src/pexec.c:3316:8: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:3316:8: note: Assignment 'cl=(struct client*)xmalloc(sizeof(struct client))', assigned value is 0 pexec-1.0rc8/src/pexec.c:3320:3: note: Null pointer dereference pexec-1.0rc8/src/pexec.c:374:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pexec-1.0rc8/src/pexec.c:368:26: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:368:11: note: Assignment 'command=(char*)xmalloc(l+1)', assigned value is 0 pexec-1.0rc8/src/pexec.c:374:16: note: Null pointer addition pexec-1.0rc8/src/pexec.c:4333:9: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] pexec-1.0rc8/src/pexec.c:4319:4: note: i is assigned pexec-1.0rc8/src/pexec.c:4333:9: note: i is overwritten pexec-1.0rc8/src/pexec.c:1004:27: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] pexec-1.0rc8/src/pexec.c:2330:11: style: Local variable 'line' shadows outer variable [shadowVariable] pexec-1.0rc8/src/pexec.c:2145:22: note: Shadowed declaration pexec-1.0rc8/src/pexec.c:2330:11: note: Shadow variable pexec-1.0rc8/src/pexec.c:4467:11: style: Local variable 'ctrlport' shadows outer variable [shadowVariable] pexec-1.0rc8/src/pexec.c:3639:21: note: Shadowed declaration pexec-1.0rc8/src/pexec.c:4467:11: note: Shadow variable pexec-1.0rc8/src/pexec.c:4605:20: style: Local variable 'use_load' shadows outer variable [shadowVariable] pexec-1.0rc8/src/pexec.c:3640:15: note: Shadowed declaration pexec-1.0rc8/src/pexec.c:4605:20: note: Shadow variable pexec-1.0rc8/src/pexec.c:137:54: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:606:46: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:882:53: style: Parameter 'cc' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:1050:45: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:1154:15: style: Variable 'rs' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:1155:11: style: Variable 'cl' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:1264:13: style: Variable 'mx' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:2418:27: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:2499:29: style: Parameter 'rsh' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:2635:31: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:2644:31: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:2647:8: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:2663:20: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:2724:19: style: Variable 'peer' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:2831:10: style: Variable 'sc' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:2866:19: style: Variable 'peer' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:3049:67: style: Parameter 'cl' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:3343:43: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:3601:30: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:3606:30: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:3611:30: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/pexec.c:3625:4: style: Variable 'listfile' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:3626:4: style: Variable 'logfile' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:4470:8: style: Variable 'file' can be declared as pointer to const [constVariablePointer] pexec-1.0rc8/src/pexec.c:230:5: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] pexec-1.0rc8/src/pexec.c:248:5: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] pexec-1.0rc8/src/pexec.c:3007:8: style: Variable 'largc' is assigned a value that is never used. [unreadVariable] pexec-1.0rc8/src/pexec.c:4438:6: style: Variable 'i' is assigned a value that is never used. [unreadVariable] pexec-1.0rc8/src/pexec.c:4458:4: style: Variable 'i' is assigned a value that is never used. [unreadVariable] pexec-1.0rc8/src/pexec.c:4650:11: style: Variable 'logfile' is assigned a value that is never used. [unreadVariable] pexec-1.0rc8/src/str.c:69:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/str.c:95:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/str.c:52:39: style:inconclusive: Function 'strkcpy' argument 3 names different: declaration 'max' definition 'size'. [funcArgNamesDifferent] pexec-1.0rc8/src/str.h:30:39: note: Function 'strkcpy' argument 3 names different: declaration 'max' definition 'size'. pexec-1.0rc8/src/str.c:52:39: note: Function 'strkcpy' argument 3 names different: declaration 'max' definition 'size'. pexec-1.0rc8/src/str.c:61:22: style:inconclusive: Function 'strappend' argument 1 names different: declaration 'string' definition 'str'. [funcArgNamesDifferent] pexec-1.0rc8/src/str.h:35:22: note: Function 'strappend' argument 1 names different: declaration 'string' definition 'str'. pexec-1.0rc8/src/str.c:61:22: note: Function 'strappend' argument 1 names different: declaration 'string' definition 'str'. pexec-1.0rc8/src/str.c:84:24: style:inconclusive: Function 'vstrappendf' argument 1 names different: declaration 'string' definition 'str'. [funcArgNamesDifferent] pexec-1.0rc8/src/str.h:45:24: note: Function 'vstrappendf' argument 1 names different: declaration 'string' definition 'str'. pexec-1.0rc8/src/str.c:84:24: note: Function 'vstrappendf' argument 1 names different: declaration 'string' definition 'str'. pexec-1.0rc8/src/str.c:84:34: style:inconclusive: Function 'vstrappendf' argument 2 names different: declaration 'format' definition 'fmt'. [funcArgNamesDifferent] pexec-1.0rc8/src/str.h:45:37: note: Function 'vstrappendf' argument 2 names different: declaration 'format' definition 'fmt'. pexec-1.0rc8/src/str.c:84:34: note: Function 'vstrappendf' argument 2 names different: declaration 'format' definition 'fmt'. pexec-1.0rc8/src/str.c:111:23: style:inconclusive: Function 'strappendf' argument 1 names different: declaration 'string' definition 'str'. [funcArgNamesDifferent] pexec-1.0rc8/src/str.h:42:23: note: Function 'strappendf' argument 1 names different: declaration 'string' definition 'str'. pexec-1.0rc8/src/str.c:111:23: note: Function 'strappendf' argument 1 names different: declaration 'string' definition 'str'. pexec-1.0rc8/src/str.c:111:33: style:inconclusive: Function 'strappendf' argument 2 names different: declaration 'format' definition 'fmt'. [funcArgNamesDifferent] pexec-1.0rc8/src/str.h:42:36: note: Function 'strappendf' argument 2 names different: declaration 'format' definition 'fmt'. pexec-1.0rc8/src/str.c:111:33: note: Function 'strappendf' argument 2 names different: declaration 'format' definition 'fmt'. pexec-1.0rc8/src/str.c:52:32: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/str.c:61:32: style: Parameter 'cat' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/str.c:84:34: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] pexec-1.0rc8/src/tokenize.c:156:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/tokenize.c:230:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pexec-1.0rc8/src/tokenize.c:169:4: error: Common realloc mistake: 'rtokens' nulled but not freed upon failure [memleakOnRealloc] pexec-1.0rc8/src/tokenize.c:229:3: error: Common realloc mistake: 'tokens' nulled but not freed upon failure [memleakOnRealloc] pexec-1.0rc8/src/tokenize.c:234:2: error: Common realloc mistake: 'tokens' nulled but not freed upon failure [memleakOnRealloc] diff: 2.17.0 pexec-1.0rc8/src/pexec.c:374:16: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pexec-1.0rc8/src/pexec.c:368:26: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:368:11: note: Assignment 'command=(char*)xmalloc(l+1)', assigned value is 0 pexec-1.0rc8/src/pexec.c:374:16: note: Null pointer addition head pexec-1.0rc8/src/pexec.c:374:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pexec-1.0rc8/src/pexec.c:368:26: note: Assuming allocation function fails pexec-1.0rc8/src/pexec.c:368:11: note: Assignment 'command=(char*)xmalloc(l+1)', assigned value is 0 pexec-1.0rc8/src/pexec.c:374:16: note: Null pointer addition DONE