2025-05-05 04:43 ftp://ftp.de.debian.org/debian/pool/main/i/itools/itools_1.1.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: 88ef81e (2025-05-02 08:42:38 +0200) count: 100 99 elapsed-time: 1.6 1.4 head-timing-info: old-timing-info: head results: itools-1.1/ical.c:65:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/ical.c:87:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/ical.c:191:20: style:inconclusive: Boolean expression '!fixed_view' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] itools-1.1/ical.c:270:20: style:inconclusive: Boolean expression '!fixed_view' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] itools-1.1/ical.c:63:4: warning:inconclusive: The buffer 'pspaces' may not be null-terminated after the call to strncpy(). [terminateStrncpy] itools-1.1/ical.c:455:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] itools-1.1/ical.c:191:20: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] itools-1.1/ical.c:270:20: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] itools-1.1/ical.c:63:12: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ical.c:62:29: note: Assuming allocation function fails itools-1.1/ical.c:62:14: note: Assignment 'pspaces=(char*)malloc(strlen(pname))', assigned value is 0 itools-1.1/ical.c:63:12: note: Null pointer dereference itools-1.1/ical.c:66:66: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ical.c:62:29: note: Assuming allocation function fails itools-1.1/ical.c:62:14: note: Assignment 'pspaces=(char*)malloc(strlen(pname))', assigned value is 0 itools-1.1/ical.c:66:66: note: Null pointer dereference itools-1.1/ical.c:67:66: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ical.c:62:29: note: Assuming allocation function fails itools-1.1/ical.c:62:14: note: Assignment 'pspaces=(char*)malloc(strlen(pname))', assigned value is 0 itools-1.1/ical.c:67:66: note: Null pointer dereference itools-1.1/ical.c:68:60: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ical.c:62:29: note: Assuming allocation function fails itools-1.1/ical.c:62:14: note: Assignment 'pspaces=(char*)malloc(strlen(pname))', assigned value is 0 itools-1.1/ical.c:68:60: note: Null pointer dereference itools-1.1/ical.c:69:60: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ical.c:62:29: note: Assuming allocation function fails itools-1.1/ical.c:62:14: note: Assignment 'pspaces=(char*)malloc(strlen(pname))', assigned value is 0 itools-1.1/ical.c:69:60: note: Null pointer dereference itools-1.1/ical.c:60:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] itools-1.1/ical.c:83:13: style: Parameter 'err_msg' can be declared as pointer to const [constParameterPointer] itools-1.1/ical.c:85:10: style: Variable 'prog_name' can be declared as pointer to const [constVariablePointer] itools-1.1/ical.c:131:13: style: Parameter 'udate' can be declared as pointer to const [constParameterPointer] itools-1.1/ical.c:132:14: style: Parameter 'rdate' can be declared as pointer to const [constParameterPointer] itools-1.1/ical.c:138:8: style: Variable 'wk_remap' can be declared as const array [constVariable] itools-1.1/ical.c:247:15: style: Parameter 'udate' can be declared as pointer to const [constParameterPointer] itools-1.1/ical.c:248:16: style: Parameter 'rdate' can be declared as pointer to const [constParameterPointer] itools-1.1/ical.c:258:8: style: Variable 'wk_remap' can be declared as const array [constVariable] itools-1.1/ical.c:359:26: style: Parameter 'argv' can be declared as const array [constParameter] itools-1.1/ical.c:374:15: style: Variable 't_ptr' can be declared as pointer to const [constVariablePointer] itools-1.1/idate.c:83:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/idate.c:104:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/idate.c:81:4: warning:inconclusive: The buffer 'pspaces' may not be null-terminated after the call to strncpy(). [terminateStrncpy] itools-1.1/idate.c:301:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] itools-1.1/idate.c:81:12: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/idate.c:80:29: note: Assuming allocation function fails itools-1.1/idate.c:80:14: note: Assignment 'pspaces=(char*)malloc(strlen(pname))', assigned value is 0 itools-1.1/idate.c:81:12: note: Null pointer dereference itools-1.1/idate.c:84:62: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/idate.c:80:29: note: Assuming allocation function fails itools-1.1/idate.c:80:14: note: Assignment 'pspaces=(char*)malloc(strlen(pname))', assigned value is 0 itools-1.1/idate.c:84:62: note: Null pointer dereference itools-1.1/idate.c:85:66: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/idate.c:80:29: note: Assuming allocation function fails itools-1.1/idate.c:80:14: note: Assignment 'pspaces=(char*)malloc(strlen(pname))', assigned value is 0 itools-1.1/idate.c:85:66: note: Null pointer dereference itools-1.1/idate.c:86:60: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/idate.c:80:29: note: Assuming allocation function fails itools-1.1/idate.c:80:14: note: Assignment 'pspaces=(char*)malloc(strlen(pname))', assigned value is 0 itools-1.1/idate.c:86:60: note: Null pointer dereference itools-1.1/idate.c:78:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] itools-1.1/idate.c:100:13: style: Parameter 'err_msg' can be declared as pointer to const [constParameterPointer] itools-1.1/idate.c:102:10: style: Variable 'prog_name' can be declared as pointer to const [constVariablePointer] itools-1.1/idate.c:149:15: style: Parameter 'indate' can be declared as pointer to const [constParameterPointer] itools-1.1/idate.c:212:26: style: Parameter 'argv' can be declared as const array [constParameter] itools-1.1/idate.c:225:15: style: Variable 't_ptr' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:88:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:123:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:390:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_NAME [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:492:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:560:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hour [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:999:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timezone [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:86:4: warning:inconclusive: The buffer 'pspaces' may not be null-terminated after the call to strncpy(). [terminateStrncpy] itools-1.1/ipraytime.c:311:11: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] itools-1.1/ipraytime.c:606:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] itools-1.1/ipraytime.c:993:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] itools-1.1/ipraytime.c:150:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] itools-1.1/ipraytime.c:404:4: error: Memory leak: rcname [memleak] itools-1.1/ipraytime.c:339:9: error: Common realloc mistake: 'new_filename' nulled but not freed upon failure [memleakOnRealloc] itools-1.1/ipraytime.c:86:12: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:86:12: note: Null pointer dereference itools-1.1/ipraytime.c:89:69: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:89:69: note: Null pointer dereference itools-1.1/ipraytime.c:90:69: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:90:69: note: Null pointer dereference itools-1.1/ipraytime.c:91:69: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:91:69: note: Null pointer dereference itools-1.1/ipraytime.c:92:66: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:92:66: note: Null pointer dereference itools-1.1/ipraytime.c:93:66: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:93:66: note: Null pointer dereference itools-1.1/ipraytime.c:94:66: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:94:66: note: Null pointer dereference itools-1.1/ipraytime.c:95:63: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:95:63: note: Null pointer dereference itools-1.1/ipraytime.c:96:60: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:96:60: note: Null pointer dereference itools-1.1/ipraytime.c:97:60: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:97:60: note: Null pointer dereference itools-1.1/ipraytime.c:98:66: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:98:66: note: Null pointer dereference itools-1.1/ipraytime.c:99:71: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:99:71: note: Null pointer dereference itools-1.1/ipraytime.c:100:69: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:100:69: note: Null pointer dereference itools-1.1/ipraytime.c:101:68: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:101:68: note: Null pointer dereference itools-1.1/ipraytime.c:102:70: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:102:70: note: Null pointer dereference itools-1.1/ipraytime.c:103:71: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:103:71: note: Null pointer dereference itools-1.1/ipraytime.c:104:54: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:104:54: note: Null pointer dereference itools-1.1/ipraytime.c:105:56: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:105:56: note: Null pointer dereference itools-1.1/ipraytime.c:106:55: warning: If memory allocation fails, then there is a possible null pointer dereference: pspaces [nullPointerOutOfMemory] itools-1.1/ipraytime.c:85:20: note: Assuming allocation function fails itools-1.1/ipraytime.c:85:20: note: Assignment 'pspaces=malloc(strlen(pname))', assigned value is 0 itools-1.1/ipraytime.c:106:55: note: Null pointer dereference itools-1.1/ipraytime.c:284:21: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] itools-1.1/ipraytime.c:386:29: note: Assuming allocation function fails itools-1.1/ipraytime.c:386:29: note: Assignment 'xdg_home=strdup(xdg_home)', assigned value is 0 itools-1.1/ipraytime.c:390:31: note: Calling function 'get_filename', 1st argument 'xdg_home' value is 0 itools-1.1/ipraytime.c:284:21: note: Null pointer dereference itools-1.1/ipraytime.c:286:12: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] itools-1.1/ipraytime.c:285:18: note: Assuming allocation function fails itools-1.1/ipraytime.c:285:18: note: Assignment 'path=malloc((dirlen+strlen(name)+2)*sizeof(char))', assigned value is 0 itools-1.1/ipraytime.c:286:12: note: Null pointer dereference itools-1.1/ipraytime.c:286:18: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [nullPointerOutOfMemory] itools-1.1/ipraytime.c:386:29: note: Assuming allocation function fails itools-1.1/ipraytime.c:386:29: note: Assignment 'xdg_home=strdup(xdg_home)', assigned value is 0 itools-1.1/ipraytime.c:390:31: note: Calling function 'get_filename', 1st argument 'xdg_home' value is 0 itools-1.1/ipraytime.c:286:18: note: Null pointer dereference itools-1.1/ipraytime.c:287:24: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] itools-1.1/ipraytime.c:285:18: note: Assuming allocation function fails itools-1.1/ipraytime.c:285:18: note: Assignment 'path=malloc((dirlen+strlen(name)+2)*sizeof(char))', assigned value is 0 itools-1.1/ipraytime.c:287:24: note: Null pointer dereference itools-1.1/ipraytime.c:363:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rcname [nullPointerOutOfMemory] itools-1.1/ipraytime.c:362:25: note: Assuming allocation function fails itools-1.1/ipraytime.c:362:25: note: Assignment 'rcname=malloc((strlen("iprayrc")+2)*sizeof(char))', assigned value is 0 itools-1.1/ipraytime.c:363:4: note: Null pointer dereference itools-1.1/ipraytime.c:368:53: warning: If memory allocation fails, then there is a possible null pointer dereference: rcname [nullPointerOutOfMemory] itools-1.1/ipraytime.c:362:25: note: Assuming allocation function fails itools-1.1/ipraytime.c:362:25: note: Assignment 'rcname=malloc((strlen("iprayrc")+2)*sizeof(char))', assigned value is 0 itools-1.1/ipraytime.c:368:53: note: Null pointer dereference itools-1.1/ipraytime.c:371:11: warning: If memory allocation fails, then there is a possible null pointer dereference: filepath [nullPointerOutOfMemory] itools-1.1/ipraytime.c:368:30: note: Assuming allocation function fails itools-1.1/ipraytime.c:368:15: note: Assignment 'filepath=(char*)malloc(strlen(home)+strlen(rcname)+2)', assigned value is 0 itools-1.1/ipraytime.c:371:11: note: Null pointer dereference itools-1.1/ipraytime.c:448:11: warning: If memory allocation fails, then there is a possible null pointer dereference: city_name [nullPointerOutOfMemory] itools-1.1/ipraytime.c:447:22: note: Assuming allocation function fails itools-1.1/ipraytime.c:447:22: note: Assignment 'city_name=malloc(strlen(ipt_city)+1)', assigned value is 0 itools-1.1/ipraytime.c:448:11: note: Null pointer dereference itools-1.1/ipraytime.c:1151:21: warning: If memory allocation fails, then there is a possible null pointer dereference: dashes [nullPointerOutOfMemory] itools-1.1/ipraytime.c:1150:28: note: Assuming allocation function fails itools-1.1/ipraytime.c:1150:28: note: Assignment 'dashes=malloc(len+2)', assigned value is 0 itools-1.1/ipraytime.c:1151:21: note: Null pointer dereference itools-1.1/ipraytime.c:1154:13: warning: If memory allocation fails, then there is a possible null pointer dereference: dashes [nullPointerOutOfMemory] itools-1.1/ipraytime.c:1150:28: note: Assuming allocation function fails itools-1.1/ipraytime.c:1150:28: note: Assignment 'dashes=malloc(len+2)', assigned value is 0 itools-1.1/ipraytime.c:1154:13: note: Null pointer dereference itools-1.1/ipraytime.c:1155:20: warning: If memory allocation fails, then there is a possible null pointer dereference: dashes [nullPointerOutOfMemory] itools-1.1/ipraytime.c:1150:28: note: Assuming allocation function fails itools-1.1/ipraytime.c:1150:28: note: Assignment 'dashes=malloc(len+2)', assigned value is 0 itools-1.1/ipraytime.c:1155:20: note: Null pointer dereference itools-1.1/ipraytime.c:1158:55: warning: If memory allocation fails, then there is a possible null pointer dereference: dashes [nullPointerOutOfMemory] itools-1.1/ipraytime.c:1150:28: note: Assuming allocation function fails itools-1.1/ipraytime.c:1150:28: note: Assignment 'dashes=malloc(len+2)', assigned value is 0 itools-1.1/ipraytime.c:1158:55: note: Null pointer dereference itools-1.1/ipraytime.c:1161:57: warning: If memory allocation fails, then there is a possible null pointer dereference: dashes [nullPointerOutOfMemory] itools-1.1/ipraytime.c:1150:28: note: Assuming allocation function fails itools-1.1/ipraytime.c:1150:28: note: Assignment 'dashes=malloc(len+2)', assigned value is 0 itools-1.1/ipraytime.c:1161:57: note: Null pointer dereference itools-1.1/ipraytime.c:291:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] itools-1.1/ipraytime.c:285:18: note: Assuming allocation function fails itools-1.1/ipraytime.c:285:18: note: Assignment 'path=malloc((dirlen+strlen(name)+2)*sizeof(char))', assigned value is 0 itools-1.1/ipraytime.c:291:17: note: Null pointer addition itools-1.1/ipraytime.c:364:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] itools-1.1/ipraytime.c:362:25: note: Assuming allocation function fails itools-1.1/ipraytime.c:362:25: note: Assignment 'rcname=malloc((strlen("iprayrc")+2)*sizeof(char))', assigned value is 0 itools-1.1/ipraytime.c:364:17: note: Null pointer addition itools-1.1/ipraytime.c:262:14: style: Local variable 'num' shadows outer variable [shadowVariable] itools-1.1/ipraytime.c:140:11: note: Shadowed declaration itools-1.1/ipraytime.c:262:14: note: Shadow variable itools-1.1/ipraytime.c:83:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:119:13: style: Parameter 'err_msg' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:121:10: style: Variable 'prog_name' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:135:20: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:305:22: style: Variable 'p' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:358:10: style: Variable 'home' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:425:10: style: Variable 'ipt_data' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:481:24: style: Parameter 'city_name' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:570:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:570:30: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:570:39: style: Parameter 'cur' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:595:20: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:695:15: style: Variable 't_ptr' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:284:21: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [ctunullpointerOutOfMemory] itools-1.1/ipraytime.c:386:29: note: Assuming allocation function fails itools-1.1/ipraytime.c:386:29: note: Assignment 'xdg_home=strdup(xdg_home)', assigned value is 0 itools-1.1/ipraytime.c:390:30: note: Calling function get_filename, 1st argument is null itools-1.1/ipraytime.c:284:21: note: Dereferencing argument directory that is null diff: head itools-1.1/ipraytime.c:284:21: warning: If memory allocation fails, then there is a possible null pointer dereference: directory [ctunullpointerOutOfMemory] itools-1.1/ipraytime.c:386:29: note: Assuming allocation function fails itools-1.1/ipraytime.c:386:29: note: Assignment 'xdg_home=strdup(xdg_home)', assigned value is 0 itools-1.1/ipraytime.c:390:30: note: Calling function get_filename, 1st argument is null itools-1.1/ipraytime.c:284:21: note: Dereferencing argument directory that is null 2.17.0 itools-1.1/ipraytime.c:291:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] itools-1.1/ipraytime.c:285:18: note: Assuming allocation function fails itools-1.1/ipraytime.c:285:18: note: Assignment 'path=malloc((dirlen+strlen(name)+2)*sizeof(char))', assigned value is 0 itools-1.1/ipraytime.c:291:17: note: Null pointer addition head itools-1.1/ipraytime.c:291:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] itools-1.1/ipraytime.c:285:18: note: Assuming allocation function fails itools-1.1/ipraytime.c:285:18: note: Assignment 'path=malloc((dirlen+strlen(name)+2)*sizeof(char))', assigned value is 0 itools-1.1/ipraytime.c:291:17: note: Null pointer addition 2.17.0 itools-1.1/ipraytime.c:364:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] itools-1.1/ipraytime.c:362:25: note: Assuming allocation function fails itools-1.1/ipraytime.c:362:25: note: Assignment 'rcname=malloc((strlen("iprayrc")+2)*sizeof(char))', assigned value is 0 itools-1.1/ipraytime.c:364:17: note: Null pointer addition head itools-1.1/ipraytime.c:364:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] itools-1.1/ipraytime.c:362:25: note: Assuming allocation function fails itools-1.1/ipraytime.c:362:25: note: Assignment 'rcname=malloc((strlen("iprayrc")+2)*sizeof(char))', assigned value is 0 itools-1.1/ipraytime.c:364:17: note: Null pointer addition DONE