2025-05-07 06:38 ftp://ftp.de.debian.org/debian/pool/main/p/ptask/ptask_1.0.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 8e656e5 (2025-05-06 23:42:00 +0200) count: 98 97 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: ptask-1.0.0/src/log.c:104:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/main.c:55:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/main.c:85:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_BUGREPORT [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/main.c:119:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_CLOSE [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/main.c:166:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/note.c:46:8: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:44:14: note: Assuming allocation function fails ptask-1.0.0/src/note.c:44:14: note: Assignment 'dir=malloc(strlen(home)+1+strlen(".task")+1)', assigned value is 0 ptask-1.0.0/src/note.c:46:8: note: Null pointer dereference ptask-1.0.0/src/note.c:67:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:62:15: note: Assuming allocation function fails ptask-1.0.0/src/note.c:62:15: note: Assignment 'dir=strdup(sdir)', assigned value is 0 ptask-1.0.0/src/note.c:67:23: note: Null pointer dereference ptask-1.0.0/src/note.c:68:27: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:62:15: note: Assuming allocation function fails ptask-1.0.0/src/note.c:62:15: note: Assignment 'dir=strdup(sdir)', assigned value is 0 ptask-1.0.0/src/note.c:68:27: note: Null pointer dereference ptask-1.0.0/src/note.c:117:24: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:122:10: note: Assignment 'str=tmp', assigned value is 0 ptask-1.0.0/src/note.c:117:24: note: Null pointer dereference ptask-1.0.0/src/note.c:118:11: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:118:11: note: Null pointer dereference ptask-1.0.0/src/note.c:118:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:122:10: note: Assignment 'str=tmp', assigned value is 0 ptask-1.0.0/src/note.c:118:16: note: Null pointer dereference ptask-1.0.0/src/note.c:118:28: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:122:10: note: Assignment 'str=tmp', assigned value is 0 ptask-1.0.0/src/note.c:118:28: note: Null pointer dereference ptask-1.0.0/src/note.c:119:24: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:122:10: note: Assignment 'str=tmp', assigned value is 0 ptask-1.0.0/src/note.c:119:24: note: Null pointer dereference ptask-1.0.0/src/note.c:120:4: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:120:4: note: Null pointer dereference ptask-1.0.0/src/note.c:120:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:122:10: note: Assignment 'str=tmp', assigned value is 0 ptask-1.0.0/src/note.c:120:15: note: Null pointer dereference ptask-1.0.0/src/note.c:119:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:119:15: note: Null pointer addition ptask-1.0.0/src/note.c:35:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] ptask-1.0.0/src/log.c:61:8: style: Variable 'lvl_str' can be declared as pointer to const [constVariablePointer] ptask-1.0.0/src/main.c:144:8: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] ptask-1.0.0/src/main.c:142:14: note: Assuming allocation function fails ptask-1.0.0/src/main.c:142:14: note: Assignment 'dir=malloc(strlen(home)+1+strlen(".ptask")+1)', assigned value is 0 ptask-1.0.0/src/main.c:144:8: note: Null pointer dereference ptask-1.0.0/src/main.c:146:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] ptask-1.0.0/src/main.c:142:14: note: Assuming allocation function fails ptask-1.0.0/src/main.c:142:14: note: Assignment 'dir=malloc(strlen(home)+1+strlen(".ptask")+1)', assigned value is 0 ptask-1.0.0/src/main.c:146:23: note: Null pointer dereference ptask-1.0.0/src/main.c:147:25: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] ptask-1.0.0/src/main.c:142:14: note: Assuming allocation function fails ptask-1.0.0/src/main.c:142:14: note: Assignment 'dir=malloc(strlen(home)+1+strlen(".ptask")+1)', assigned value is 0 ptask-1.0.0/src/main.c:147:25: note: Null pointer dereference ptask-1.0.0/src/main.c:135:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] ptask-1.0.0/src/pio.c:42:27: style: Condition '*c=='\0'' is always false [knownConditionTrueFalse] ptask-1.0.0/src/pio.c:37:8: style: Variable 'c' can be declared as pointer to const [constVariablePointer] ptask-1.0.0/src/ptime.c:34:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/ptime.c:32:14: note: Assuming allocation function fails ptask-1.0.0/src/ptime.c:32:14: note: Assignment 'str=malloc(64)', assigned value is 0 ptask-1.0.0/src/ptime.c:34:15: note: Null pointer dereference ptask-1.0.0/src/ptime.c:56:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/ptime.c:55:14: note: Assuming allocation function fails ptask-1.0.0/src/ptime.c:55:14: note: Assignment 'str=malloc(11)', assigned value is 0 ptask-1.0.0/src/ptime.c:56:15: note: Null pointer dereference ptask-1.0.0/src/ptime.c:24:34: style: Parameter 't' can be declared as pointer to const [constParameterPointer] ptask-1.0.0/src/ui.c:54:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SETTINGS_KEY_WINDOW_WIDTH [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/ui.c:119:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SETTINGS_KEY_WINDOW_WIDTH [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/ui.c:180:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_DATA_DIR [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/ui.c:227:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/ui_newtask_diag.c:82:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_DATA_DIR [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/ui.c:38:36: style: Parameter 'btn' can be declared as pointer to const [constParameterPointer] ptask-1.0.0/src/ui.c:38:50: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] ptask-1.0.0/src/ui.c:70:36: style: Parameter 'btn' can be declared as pointer to const [constParameterPointer] ptask-1.0.0/src/ui.c:70:50: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] ptask-1.0.0/src/ui.c:86:45: style: Parameter 'w' can be declared as pointer to const. However it seems that 'delete_event_cbk' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ptask-1.0.0/src/ui.c:135:2: note: You might need to cast the function pointer here ptask-1.0.0/src/ui.c:86:45: note: Parameter 'w' can be declared as pointer to const ptask-1.0.0/src/ui.c:86:58: style: Parameter 'evt' can be declared as pointer to const. However it seems that 'delete_event_cbk' is a callback function, if 'evt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ptask-1.0.0/src/ui.c:135:2: note: You might need to cast the function pointer here ptask-1.0.0/src/ui.c:86:58: note: Parameter 'evt' can be declared as pointer to const ptask-1.0.0/src/ui.c:86:72: style: Parameter 'data' can be declared as pointer to const. However it seems that 'delete_event_cbk' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ptask-1.0.0/src/ui.c:135:2: note: You might need to cast the function pointer here ptask-1.0.0/src/ui.c:86:72: note: Parameter 'data' can be declared as pointer to const ptask-1.0.0/src/ui.c:97:44: style: Parameter 'w' can be declared as pointer to const. However it seems that 'status_changed_cbk' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ptask-1.0.0/src/ui.c:115:2: note: You might need to cast the function pointer here ptask-1.0.0/src/ui.c:97:44: note: Parameter 'w' can be declared as pointer to const ptask-1.0.0/src/ui.c:97:56: style: Parameter 'data' can be declared as pointer to const. However it seems that 'status_changed_cbk' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ptask-1.0.0/src/ui.c:115:2: note: You might need to cast the function pointer here ptask-1.0.0/src/ui.c:97:56: note: Parameter 'data' can be declared as pointer to const ptask-1.0.0/src/ui.c:161:35: style: Parameter 'menu_item' can be declared as pointer to const [constParameterPointer] ptask-1.0.0/src/ui.c:161:55: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] ptask-1.0.0/src/ui_taskpanel.c:76:6: style: The if condition is the same as the previous if condition [duplicateCondition] ptask-1.0.0/src/ui_taskpanel.c:73:6: note: First condition ptask-1.0.0/src/ui_taskpanel.c:76:6: note: Second condition ptask-1.0.0/src/tw.c:42:9: warning: If memory allocation fails, then there is a possible null pointer dereference: tm [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:41:13: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:41:13: note: Assignment 'tm=malloc(sizeof(struct tm))', assigned value is 0 ptask-1.0.0/src/tw.c:42:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:57:40: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:137:16: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:137:16: note: Assignment 'opts2=malloc(strlen("rc.confirmation:no ")+strlen(opts)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:143:19: note: Calling function 'task_exec', 1st argument 'opts2' value is 0 ptask-1.0.0/src/tw.c:57:40: note: Null pointer dereference ptask-1.0.0/src/tw.c:58:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:57:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:57:14: note: Assignment 'cmd=malloc(strlen("task ")+strlen(opts)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:58:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:59:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:57:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:57:14: note: Assignment 'cmd=malloc(strlen("task ")+strlen(opts)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:59:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:59:14: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:137:16: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:137:16: note: Assignment 'opts2=malloc(strlen("rc.confirmation:no ")+strlen(opts)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:143:19: note: Calling function 'task_exec', 1st argument 'opts2' value is 0 ptask-1.0.0/src/tw.c:59:14: note: Null pointer dereference ptask-1.0.0/src/tw.c:63:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:57:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:57:14: note: Assignment 'cmd=malloc(strlen("task ")+strlen(opts)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:63:12: note: Null pointer dereference ptask-1.0.0/src/tw.c:74:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:72:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:72:14: note: Assignment 'str=strdup("")', assigned value is 0 ptask-1.0.0/src/tw.c:74:23: note: Null pointer dereference ptask-1.0.0/src/tw.c:75:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:74:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:74:15: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/tw.c:75:10: note: Null pointer dereference ptask-1.0.0/src/tw.c:75:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:72:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:72:14: note: Assignment 'str=strdup("")', assigned value is 0 ptask-1.0.0/src/tw.c:75:15: note: Null pointer dereference ptask-1.0.0/src/tw.c:75:27: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:72:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:72:14: note: Assignment 'str=strdup("")', assigned value is 0 ptask-1.0.0/src/tw.c:75:27: note: Null pointer dereference ptask-1.0.0/src/tw.c:76:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:72:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:72:14: note: Assignment 'str=strdup("")', assigned value is 0 ptask-1.0.0/src/tw.c:76:23: note: Null pointer dereference ptask-1.0.0/src/tw.c:77:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:74:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:74:15: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/tw.c:77:3: note: Null pointer dereference ptask-1.0.0/src/tw.c:77:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:72:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:72:14: note: Assignment 'str=strdup("")', assigned value is 0 ptask-1.0.0/src/tw.c:77:14: note: Null pointer dereference ptask-1.0.0/src/tw.c:138:19: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:405:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:405:15: note: Assignment 'opts=malloc(strlen("add")+strlen(" priority:")+1+strlen(" project:\\\"")+strlen(eprj)+strlen("\\\"")+strlen(" \"")+strlen(newdesc)+strlen("\"")+1)', assigned value is 0 ptask-1.0.0/src/tw.c:433:10: note: Calling function 'tw_exec', 1st argument 'opts' value is 0 ptask-1.0.0/src/tw.c:129:28: note: Assuming condition is false ptask-1.0.0/src/tw.c:138:19: note: Null pointer dereference ptask-1.0.0/src/tw.c:140:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opts2 [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:137:16: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:137:16: note: Assignment 'opts2=malloc(strlen("rc.confirmation:no ")+strlen(opts)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:140:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:141:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opts2 [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:137:16: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:137:16: note: Assignment 'opts2=malloc(strlen("rc.confirmation:no ")+strlen(opts)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:141:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:141:16: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:405:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:405:15: note: Assignment 'opts=malloc(strlen("add")+strlen(" priority:")+1+strlen(" project:\\\"")+strlen(eprj)+strlen("\\\"")+strlen(" \"")+strlen(newdesc)+strlen("\"")+1)', assigned value is 0 ptask-1.0.0/src/tw.c:433:10: note: Calling function 'tw_exec', 1st argument 'opts' value is 0 ptask-1.0.0/src/tw.c:129:28: note: Assuming condition is false ptask-1.0.0/src/tw.c:141:16: note: Null pointer dereference ptask-1.0.0/src/tw.c:151:52: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:276:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:276:15: note: Assignment 'opts=malloc(strlen("export status:")+strlen(status)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:281:26: note: Calling function 'task_exec_json', 1st argument 'opts' value is 0 ptask-1.0.0/src/tw.c:151:52: note: Null pointer dereference ptask-1.0.0/src/tw.c:152:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:151:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:151:14: note: Assignment 'cmd=malloc(strlen("rc.json.array=on ")+strlen(opts)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:152:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:153:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:151:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:151:14: note: Assignment 'cmd=malloc(strlen("rc.json.array=on ")+strlen(opts)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:153:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:153:14: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:276:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:276:15: note: Assignment 'opts=malloc(strlen("export status:")+strlen(status)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:281:26: note: Calling function 'task_exec_json', 1st argument 'opts' value is 0 ptask-1.0.0/src/tw.c:153:14: note: Null pointer dereference ptask-1.0.0/src/tw.c:190:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tags [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:186:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:186:15: note: Assignment 'tags=malloc((n+1)*sizeof(char*))', assigned value is 0 ptask-1.0.0/src/tw.c:190:3: note: Null pointer dereference ptask-1.0.0/src/tw.c:193:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tags [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:186:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:186:15: note: Assignment 'tags=malloc((n+1)*sizeof(char*))', assigned value is 0 ptask-1.0.0/src/tw.c:193:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:207:2: warning: If memory allocation fails, then there is a possible null pointer dereference: task [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:204:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:204:15: note: Assignment 'task=malloc(sizeof(struct task))', assigned value is 0 ptask-1.0.0/src/tw.c:207:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:210:2: warning: If memory allocation fails, then there is a possible null pointer dereference: task [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:204:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:204:15: note: Assignment 'task=malloc(sizeof(struct task))', assigned value is 0 ptask-1.0.0/src/tw.c:210:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:213:2: warning: If memory allocation fails, then there is a possible null pointer dereference: task [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:204:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:204:15: note: Assignment 'task=malloc(sizeof(struct task))', assigned value is 0 ptask-1.0.0/src/tw.c:213:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:230:2: warning: If memory allocation fails, then there is a possible null pointer dereference: task [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:204:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:204:15: note: Assignment 'task=malloc(sizeof(struct task))', assigned value is 0 ptask-1.0.0/src/tw.c:230:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:239:2: warning: If memory allocation fails, then there is a possible null pointer dereference: task [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:204:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:204:15: note: Assignment 'task=malloc(sizeof(struct task))', assigned value is 0 ptask-1.0.0/src/tw.c:239:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:239:24: warning: If memory allocation fails, then there is a possible null pointer dereference: task [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:204:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:204:15: note: Assignment 'task=malloc(sizeof(struct task))', assigned value is 0 ptask-1.0.0/src/tw.c:239:24: note: Null pointer dereference ptask-1.0.0/src/tw.c:242:2: warning: If memory allocation fails, then there is a possible null pointer dereference: task [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:204:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:204:15: note: Assignment 'task=malloc(sizeof(struct task))', assigned value is 0 ptask-1.0.0/src/tw.c:242:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:278:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:276:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:276:15: note: Assignment 'opts=malloc(strlen("export status:")+strlen(status)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:278:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:279:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:276:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:276:15: note: Assignment 'opts=malloc(strlen("export status:")+strlen(status)+1)', assigned value is 0 ptask-1.0.0/src/tw.c:279:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:294:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tasks [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:289:16: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:289:16: note: Assignment 'tasks=malloc((n+1)*sizeof(struct task*))', assigned value is 0 ptask-1.0.0/src/tw.c:294:3: note: Null pointer dereference ptask-1.0.0/src/tw.c:297:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tasks [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:289:16: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:289:16: note: Assignment 'tasks=malloc((n+1)*sizeof(struct task*))', assigned value is 0 ptask-1.0.0/src/tw.c:297:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:409:18: warning: Either the condition 'eprj' is redundant or there is possible null pointer dereference: eprj. [nullPointerRedundantCheck] ptask-1.0.0/src/tw.c:423:6: note: Assuming that condition 'eprj' is not redundant ptask-1.0.0/src/tw.c:409:18: note: Null pointer dereference ptask-1.0.0/src/tw.c:416:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:405:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:405:15: note: Assignment 'opts=malloc(strlen("add")+strlen(" priority:")+1+strlen(" project:\\\"")+strlen(eprj)+strlen("\\\"")+strlen(" \"")+strlen(newdesc)+strlen("\"")+1)', assigned value is 0 ptask-1.0.0/src/tw.c:416:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:429:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:405:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:405:15: note: Assignment 'opts=malloc(strlen("add")+strlen(" priority:")+1+strlen(" project:\\\"")+strlen(eprj)+strlen("\\\"")+strlen(" \"")+strlen(newdesc)+strlen("\"")+1)', assigned value is 0 ptask-1.0.0/src/tw.c:429:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:430:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:405:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:405:15: note: Assignment 'opts=malloc(strlen("add")+strlen(" priority:")+1+strlen(" project:\\\"")+strlen(eprj)+strlen("\\\"")+strlen(" \"")+strlen(newdesc)+strlen("\"")+1)', assigned value is 0 ptask-1.0.0/src/tw.c:430:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:431:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opts [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:405:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:405:15: note: Assignment 'opts=malloc(strlen("add")+strlen(" priority:")+1+strlen(" project:\\\"")+strlen(eprj)+strlen("\\\"")+strlen(" \"")+strlen(newdesc)+strlen("\"")+1)', assigned value is 0 ptask-1.0.0/src/tw.c:431:9: note: Null pointer dereference ptask-1.0.0/src/tw.c:584:2: warning: If memory allocation fails, then there is a possible null pointer dereference: prj [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:582:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:582:14: note: Assignment 'prj=malloc(sizeof(struct project))', assigned value is 0 ptask-1.0.0/src/tw.c:584:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:585:2: warning: If memory allocation fails, then there is a possible null pointer dereference: prj [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:582:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:582:14: note: Assignment 'prj=malloc(sizeof(struct project))', assigned value is 0 ptask-1.0.0/src/tw.c:585:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:619:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:614:3: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:613:11: note: Assignment 'result=(struct project**)malloc((n+1+1)*sizeof(struct project*))', assigned value is 0 ptask-1.0.0/src/tw.c:619:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:620:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:614:3: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:613:11: note: Assignment 'result=(struct project**)malloc((n+1+1)*sizeof(struct project*))', assigned value is 0 ptask-1.0.0/src/tw.c:620:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:634:2: warning: If memory allocation fails, then there is a possible null pointer dereference: prjs [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:633:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:633:15: note: Assignment 'prjs=malloc(2*sizeof(struct project*))', assigned value is 0 ptask-1.0.0/src/tw.c:634:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:635:2: warning: If memory allocation fails, then there is a possible null pointer dereference: prjs [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:633:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:633:15: note: Assignment 'prjs=malloc(2*sizeof(struct project*))', assigned value is 0 ptask-1.0.0/src/tw.c:635:2: note: Null pointer dereference ptask-1.0.0/src/tw.c:76:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ptask-1.0.0/src/tw.c:74:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:74:15: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/tw.c:76:14: note: Null pointer addition ptask-1.0.0/src/tw.c:351:54: style:inconclusive: Function 'tw_modify_project' argument 2 names different: declaration 'newproj' definition 'newproject'. [funcArgNamesDifferent] ptask-1.0.0/src/tw.h:46:54: note: Function 'tw_modify_project' argument 2 names different: declaration 'newproj' definition 'newproject'. ptask-1.0.0/src/tw.c:351:54: note: Function 'tw_modify_project' argument 2 names different: declaration 'newproj' definition 'newproject'. ptask-1.0.0/src/tw.c:48:30: style: Parameter 'opts' can be declared as pointer to const [constParameterPointer] ptask-1.0.0/src/tw.c:125:28: style: Parameter 'opts' can be declared as pointer to const [constParameterPointer] ptask-1.0.0/src/ui_tasktree.c:166:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SETTINGS_KEY_TASKS_SORT_COL [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/ui_tasktree.c:199:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SETTINGS_KEY_TASKS_SORT_COL [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/ui_tasktree.c:472:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SETTINGS_VISIBLE_COL_KEYS [valueFlowBailoutIncompleteVar] ptask-1.0.0/src/ui_tasktree.c:315:2: error: Mismatching allocation and deallocation: desc [mismatchAllocDealloc] ptask-1.0.0/src/ui_tasktree.c:308:9: note: Mismatching allocation and deallocation: desc ptask-1.0.0/src/ui_tasktree.c:315:2: note: Mismatching allocation and deallocation: desc ptask-1.0.0/src/ui_tasktree.c:295:47: style: Parameter 'task' can be declared as pointer to const [constParameterPointer] diff: head ptask-1.0.0/src/note.c:118:28: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:122:10: note: Assignment 'str=tmp', assigned value is 0 ptask-1.0.0/src/note.c:118:28: note: Null pointer dereference 2.17.0 ptask-1.0.0/src/note.c:119:15: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:119:15: note: Null pointer addition head ptask-1.0.0/src/note.c:119:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ptask-1.0.0/src/note.c:117:16: note: Assuming allocation function fails ptask-1.0.0/src/note.c:117:16: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/note.c:119:15: note: Null pointer addition head ptask-1.0.0/src/tw.c:239:24: warning: If memory allocation fails, then there is a possible null pointer dereference: task [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:204:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:204:15: note: Assignment 'task=malloc(sizeof(struct task))', assigned value is 0 ptask-1.0.0/src/tw.c:239:24: note: Null pointer dereference head ptask-1.0.0/src/tw.c:75:27: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ptask-1.0.0/src/tw.c:72:14: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:72:14: note: Assignment 'str=strdup("")', assigned value is 0 ptask-1.0.0/src/tw.c:75:27: note: Null pointer dereference 2.17.0 ptask-1.0.0/src/tw.c:76:14: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ptask-1.0.0/src/tw.c:74:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:74:15: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/tw.c:76:14: note: Null pointer addition head ptask-1.0.0/src/tw.c:76:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ptask-1.0.0/src/tw.c:74:15: note: Assuming allocation function fails ptask-1.0.0/src/tw.c:74:15: note: Assignment 'tmp=malloc(strlen(str)+s+(unsigned long)1)', assigned value is 0 ptask-1.0.0/src/tw.c:76:14: note: Null pointer addition 2.17.0 ptask-1.0.0/src/ui_tasktree.c:310:13: warning: If memory allocation fails, then there is a possible null pointer dereference: desc [nullPointerOutOfMemory] ptask-1.0.0/src/ui_tasktree.c:308:22: note: Assuming allocation function fails ptask-1.0.0/src/ui_tasktree.c:308:22: note: Assignment 'desc=g_ascii_strup(task->description,-1)', assigned value is 0 ptask-1.0.0/src/ui_tasktree.c:310:13: note: Null pointer dereference 2.17.0 ptask-1.0.0/src/ui_tasktree.c:327:14: warning: If memory allocation fails, then there is a possible null pointer dereference: tag [nullPointerOutOfMemory] ptask-1.0.0/src/ui_tasktree.c:325:22: note: Assuming allocation function fails ptask-1.0.0/src/ui_tasktree.c:325:22: note: Assignment 'tag=g_ascii_strup(*tags,-1)', assigned value is 0 ptask-1.0.0/src/ui_tasktree.c:327:14: note: Null pointer dereference DONE