2025-05-08 02:09 ftp://ftp.de.debian.org/debian/pool/main/s/smenu/smenu_1.2.0.orig.tar.bz2 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 -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: ebc80c0 (2025-05-07 18:59:31 +0200) count: 122 156 elapsed-time: 2.7 2.8 head-timing-info: old-timing-info: head results: smenu-1.2.0/fgetc.c:37:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.2.0/fgetc.c:59:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] smenu-1.2.0/list.c:56:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.2.0/list.c:44:23: note: Assuming allocation function fails smenu-1.2.0/list.c:44:23: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.2.0/list.c:45:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.2.0/list.c:56:3: note: Null pointer dereference smenu-1.2.0/list.c:57:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.2.0/list.c:44:23: note: Assuming allocation function fails smenu-1.2.0/list.c:44:23: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.2.0/list.c:45:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.2.0/list.c:57:3: note: Null pointer dereference smenu-1.2.0/list.c:58:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.2.0/list.c:44:23: note: Assuming allocation function fails smenu-1.2.0/list.c:44:23: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.2.0/list.c:45:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.2.0/list.c:58:3: note: Null pointer dereference smenu-1.2.0/index.c:42:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/index.c:41:41: note: Assuming allocation function fails smenu-1.2.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.2.0/index.c:42:5: note: Null pointer dereference smenu-1.2.0/index.c:43:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/index.c:41:41: note: Assuming allocation function fails smenu-1.2.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.2.0/index.c:43:5: note: Null pointer dereference smenu-1.2.0/index.c:43:16: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/index.c:41:41: note: Assuming allocation function fails smenu-1.2.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.2.0/index.c:43:16: note: Null pointer dereference smenu-1.2.0/index.c:43:27: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/index.c:41:41: note: Assuming allocation function fails smenu-1.2.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.2.0/index.c:43:27: note: Null pointer dereference smenu-1.2.0/index.c:44:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/index.c:41:41: note: Assuming allocation function fails smenu-1.2.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.2.0/index.c:44:5: note: Null pointer dereference smenu-1.2.0/index.c:47:12: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/index.c:41:41: note: Assuming allocation function fails smenu-1.2.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.2.0/index.c:47:12: note: Null pointer dereference smenu-1.2.0/index.c:268:56: style:inconclusive: Function 'insert_sorted_index' argument 3 names different: declaration 'filled' definition 'nb'. [funcArgNamesDifferent] smenu-1.2.0/index.h:46:56: note: Function 'insert_sorted_index' argument 3 names different: declaration 'filled' definition 'nb'. smenu-1.2.0/index.c:268:56: note: Function 'insert_sorted_index' argument 3 names different: declaration 'filled' definition 'nb'. smenu-1.2.0/index.c:316:40: style:inconclusive: Function 'insert_sorted_ptr' argument 3 names different: declaration 'filled' definition 'nb'. [funcArgNamesDifferent] smenu-1.2.0/index.h:50:40: note: Function 'insert_sorted_ptr' argument 3 names different: declaration 'filled' definition 'nb'. smenu-1.2.0/index.c:316:40: note: Function 'insert_sorted_ptr' argument 3 names different: declaration 'filled' definition 'nb'. smenu-1.2.0/index.c:205:41: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/index.c:234:48: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/safe.c:27:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.2.0/safe.c:40:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.2.0/safe.c:51:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.2.0/safe.c:62:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.2.0/smenu.c:6034:26: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] smenu-1.2.0/ctxopt.c:305:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.2.0/ctxopt.c:353:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.2.0/ctxopt.c:2356:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seen [valueFlowBailoutIncompleteVar] smenu-1.2.0/ctxopt.c:2953:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] smenu-1.2.0/ctxopt.c:3518:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.2.0/ctxopt.c:4297:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.2.0/ctxopt.c:4320:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] smenu-1.2.0/ctxopt.c:4375:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.2.0/ctxopt.c:4420:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable args [valueFlowBailoutIncompleteVar] smenu-1.2.0/ctxopt.c:4471:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable args [valueFlowBailoutIncompleteVar] smenu-1.2.0/ctxopt.c:4770:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable args [valueFlowBailoutIncompleteVar] smenu-1.2.0/utils.c:331:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.2.0/utils.c:143:21: style:inconclusive: Function 'concat' argument 1 names different: declaration 'str1' definition 's1'. [funcArgNamesDifferent] smenu-1.2.0/utils.h:45:21: note: Function 'concat' argument 1 names different: declaration 'str1' definition 's1'. smenu-1.2.0/utils.c:143:21: note: Function 'concat' argument 1 names different: declaration 'str1' definition 's1'. smenu-1.2.0/utils.c:206:32: style:inconclusive: Function 'ltrim' argument 2 names different: declaration 'trim' definition 'trim_str'. [funcArgNamesDifferent] smenu-1.2.0/utils.h:51:32: note: Function 'ltrim' argument 2 names different: declaration 'trim' definition 'trim_str'. smenu-1.2.0/utils.c:206:32: note: Function 'ltrim' argument 2 names different: declaration 'trim' definition 'trim_str'. smenu-1.2.0/utils.c:227:32: style:inconclusive: Function 'rtrim' argument 2 names different: declaration 'trim' definition 'trim_str'. [funcArgNamesDifferent] smenu-1.2.0/utils.h:54:32: note: Function 'rtrim' argument 2 names different: declaration 'trim' definition 'trim_str'. smenu-1.2.0/utils.c:227:32: note: Function 'rtrim' argument 2 names different: declaration 'trim' definition 'trim_str'. smenu-1.2.0/utils.c:227:49: style:inconclusive: Function 'rtrim' argument 3 names different: declaration 'min_len' definition 'min'. [funcArgNamesDifferent] smenu-1.2.0/utils.h:54:45: note: Function 'rtrim' argument 3 names different: declaration 'min_len' definition 'min'. smenu-1.2.0/utils.c:227:49: note: Function 'rtrim' argument 3 names different: declaration 'min_len' definition 'min'. smenu-1.2.0/utils.c:266:18: style:inconclusive: Function 'my_strcpy' argument 1 names different: declaration 'dst' definition 'str1'. [funcArgNamesDifferent] smenu-1.2.0/utils.h:60:18: note: Function 'my_strcpy' argument 1 names different: declaration 'dst' definition 'str1'. smenu-1.2.0/utils.c:266:18: note: Function 'my_strcpy' argument 1 names different: declaration 'dst' definition 'str1'. smenu-1.2.0/utils.c:266:31: style:inconclusive: Function 'my_strcpy' argument 2 names different: declaration 'src' definition 'str2'. [funcArgNamesDifferent] smenu-1.2.0/utils.h:60:30: note: Function 'my_strcpy' argument 2 names different: declaration 'src' definition 'str2'. smenu-1.2.0/utils.c:266:31: note: Function 'my_strcpy' argument 2 names different: declaration 'src' definition 'str2'. smenu-1.2.0/utils.c:300:31: style:inconclusive: Function 'my_wcscasecmp' argument 1 names different: declaration 'w1s' definition 's1'. [funcArgNamesDifferent] smenu-1.2.0/utils.h:69:31: note: Function 'my_wcscasecmp' argument 1 names different: declaration 'w1s' definition 's1'. smenu-1.2.0/utils.c:300:31: note: Function 'my_wcscasecmp' argument 1 names different: declaration 'w1s' definition 's1'. smenu-1.2.0/utils.c:300:51: style:inconclusive: Function 'my_wcscasecmp' argument 2 names different: declaration 'w2s' definition 's2'. [funcArgNamesDifferent] smenu-1.2.0/utils.h:69:52: note: Function 'my_wcscasecmp' argument 2 names different: declaration 'w2s' definition 's2'. smenu-1.2.0/utils.c:300:51: note: Function 'my_wcscasecmp' argument 2 names different: declaration 'w2s' definition 's2'. smenu-1.2.0/utils.c:44:16: style: Variable 'ia' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/utils.c:45:16: style: Variable 'ib' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/utils.c:191:18: style: Parameter 'str1' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/utils.c:191:31: style: Parameter 'str2' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/xmalloc.c:70:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.2.0/xmalloc.c:93:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.2.0/xmalloc.c:114:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.2.0/xmalloc.c:107:17: style:inconclusive: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. [funcArgNamesDifferent] smenu-1.2.0/xmalloc.h:17:17: note: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. smenu-1.2.0/xmalloc.c:107:17: note: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. smenu-1.2.0/utf8.c:111:9: warning:inconclusive: Width 6 given in format string (no. 1) is smaller than destination buffer 'tmp[9]'. [invalidScanfFormatWidth_smaller] smenu-1.2.0/utf8.c:521:3: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] smenu-1.2.0/utf8.c:520:17: note: Assuming allocation function fails smenu-1.2.0/utf8.c:520:17: note: Assignment 'w=xmalloc((size+1)*sizeof(wchar_t))', assigned value is 0 smenu-1.2.0/utf8.c:521:3: note: Null pointer dereference smenu-1.2.0/utf8.c:76:31: style:inconclusive: Function 'utf8_interpret' argument 2 names different: declaration 'sc' definition 'substitute'. [funcArgNamesDifferent] smenu-1.2.0/utf8.h:46:31: note: Function 'utf8_interpret' argument 2 names different: declaration 'sc' definition 'substitute'. smenu-1.2.0/utf8.c:76:31: note: Function 'utf8_interpret' argument 2 names different: declaration 'sc' definition 'substitute'. smenu-1.2.0/utf8.c:367:30: style:inconclusive: Function 'utf8_sanitize' argument 2 names different: declaration 'sc' definition 'substitute'. [funcArgNamesDifferent] smenu-1.2.0/utf8.h:40:30: note: Function 'utf8_sanitize' argument 2 names different: declaration 'sc' definition 'substitute'. smenu-1.2.0/utf8.c:367:30: note: Function 'utf8_sanitize' argument 2 names different: declaration 'sc' definition 'substitute'. smenu-1.2.0/utf8.c:407:22: style:inconclusive: Function 'utf8_validate' argument 1 names different: declaration 'str' definition 's'. [funcArgNamesDifferent] smenu-1.2.0/utf8.h:49:22: note: Function 'utf8_validate' argument 1 names different: declaration 'str' definition 's'. smenu-1.2.0/utf8.c:407:22: note: Function 'utf8_validate' argument 1 names different: declaration 'str' definition 's'. smenu-1.2.0/utf8.c:312:20: style: Parameter 's' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/utf8.c:462:20: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/utf8.c:481:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/utf8.c:546:36: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:2167:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.2.0/ctxopt.c:2182:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.2.0/ctxopt.c:3103:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.2.0/ctxopt.c:3135:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.2.0/ctxopt.c:3155:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.2.0/ctxopt.c:3161:26: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.2.0/ctxopt.c:1011:9: style: Condition 'q!=0' is always true [knownConditionTrueFalse] smenu-1.2.0/ctxopt.c:3266:17: style: Condition 'end>0' is always true [knownConditionTrueFalse] smenu-1.2.0/ctxopt.c:3250:13: note: Assuming that condition 'len>1' is not redundant smenu-1.2.0/ctxopt.c:3263:17: note: Assignment 'end=len-1', assigned value is greater than 0 smenu-1.2.0/ctxopt.c:3266:17: note: Condition 'end>0' is always true smenu-1.2.0/ctxopt.c:4169:34: style: Condition 'init_opts(opts_specs,ctx)==0' is always false [knownConditionTrueFalse] smenu-1.2.0/ctxopt.c:4169:16: note: Calling function 'init_opts' returns 1 smenu-1.2.0/ctxopt.c:4169:34: note: Condition 'init_opts(opts_specs,ctx)==0' is always false smenu-1.2.0/ctxopt.c:1865:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] smenu-1.2.0/ctxopt.c:1898:11: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] smenu-1.2.0/ctxopt.c:658:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:605:23: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:605:23: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:606:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.2.0/ctxopt.c:658:3: note: Null pointer dereference smenu-1.2.0/ctxopt.c:659:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:605:23: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:605:23: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:606:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.2.0/ctxopt.c:659:3: note: Null pointer dereference smenu-1.2.0/ctxopt.c:660:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:605:23: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:605:23: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:606:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.2.0/ctxopt.c:660:3: note: Null pointer dereference smenu-1.2.0/ctxopt.c:868:4: warning: If memory allocation fails, then there is a possible null pointer dereference: *array [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:859:19: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:859:19: note: Assignment '*array=xmalloc((list->len+1)*sizeof(char*))', assigned value is 0 smenu-1.2.0/ctxopt.c:860:15: note: Assuming condition is false smenu-1.2.0/ctxopt.c:868:4: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1058:25: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4790:22: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4790:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.2.0/ctxopt.c:4791:15: note: Calling function 'ltrim', 1st argument 'str' value is 0 smenu-1.2.0/ctxopt.c:1058:25: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1059:25: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4790:22: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4790:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.2.0/ctxopt.c:4791:15: note: Calling function 'ltrim', 1st argument 'str' value is 0 smenu-1.2.0/ctxopt.c:1059:25: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1075:23: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4790:22: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4790:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.2.0/ctxopt.c:4792:15: note: Calling function 'rtrim', 1st argument 'str' value is 0 smenu-1.2.0/ctxopt.c:1075:23: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1076:40: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4790:22: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4790:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.2.0/ctxopt.c:4792:15: note: Calling function 'rtrim', 1st argument 'str' value is 0 smenu-1.2.0/ctxopt.c:1076:40: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1077:5: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4790:22: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4790:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.2.0/ctxopt.c:4792:15: note: Calling function 'rtrim', 1st argument 'str' value is 0 smenu-1.2.0/ctxopt.c:1077:5: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1148:18: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4292:19: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4292:19: note: Assignment 'format=xstrdup(args[0])', assigned value is 0 smenu-1.2.0/ctxopt.c:4293:22: note: Calling function 'strappend', 1st argument 'format' value is 0 smenu-1.2.0/ctxopt.c:1148:18: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1280:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4597:24: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4597:24: note: Assignment 'value=xstrdup(va_arg(args,char*))', assigned value is 0 smenu-1.2.0/ctxopt.c:4601:34: note: Calling function 'str2argv', 1st argument 'value' value is 0 smenu-1.2.0/ctxopt.c:1280:11: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1285:13: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4597:24: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4597:24: note: Assignment 'value=xstrdup(va_arg(args,char*))', assigned value is 0 smenu-1.2.0/ctxopt.c:4601:34: note: Calling function 'str2argv', 1st argument 'value' value is 0 smenu-1.2.0/ctxopt.c:1285:13: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1285:28: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4597:24: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4597:24: note: Assignment 'value=xstrdup(va_arg(args,char*))', assigned value is 0 smenu-1.2.0/ctxopt.c:4601:34: note: Calling function 'str2argv', 1st argument 'value' value is 0 smenu-1.2.0/ctxopt.c:1285:28: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1288:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4597:24: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4597:24: note: Assignment 'value=xstrdup(va_arg(args,char*))', assigned value is 0 smenu-1.2.0/ctxopt.c:4601:34: note: Calling function 'str2argv', 1st argument 'value' value is 0 smenu-1.2.0/ctxopt.c:1288:11: note: Null pointer dereference smenu-1.2.0/ctxopt.c:1927:18: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:1822:17: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:1822:17: note: Assignment 'line=xstrdup(" ")', assigned value is 0 smenu-1.2.0/ctxopt.c:1824:15: note: Assuming condition is false smenu-1.2.0/ctxopt.c:1927:18: note: Null pointer dereference smenu-1.2.0/ctxopt.c:512:16: style:inconclusive: Function 'xcalloc' argument 1 names different: declaration 'num' definition 'n'. [funcArgNamesDifferent] smenu-1.2.0/ctxopt.c:58:16: note: Function 'xcalloc' argument 1 names different: declaration 'num' definition 'n'. smenu-1.2.0/ctxopt.c:512:16: note: Function 'xcalloc' argument 1 names different: declaration 'num' definition 'n'. smenu-1.2.0/ctxopt.c:530:17: style:inconclusive: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. [funcArgNamesDifferent] smenu-1.2.0/ctxopt.c:61:17: note: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. smenu-1.2.0/ctxopt.c:530:17: note: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. smenu-1.2.0/ctxopt.c:1101:16: style:inconclusive: Function 'strpref' argument 1 names different: declaration 's1' definition 'str1'. [funcArgNamesDifferent] smenu-1.2.0/ctxopt.c:161:16: note: Function 'strpref' argument 1 names different: declaration 's1' definition 'str1'. smenu-1.2.0/ctxopt.c:1101:16: note: Function 'strpref' argument 1 names different: declaration 's1' definition 'str1'. smenu-1.2.0/ctxopt.c:1101:29: style:inconclusive: Function 'strpref' argument 2 names different: declaration 's2' definition 'str2'. [funcArgNamesDifferent] smenu-1.2.0/ctxopt.c:161:27: note: Function 'strpref' argument 2 names different: declaration 's2' definition 'str2'. smenu-1.2.0/ctxopt.c:1101:29: note: Function 'strpref' argument 2 names different: declaration 's2' definition 'str2'. smenu-1.2.0/ctxopt.c:1550:17: style:inconclusive: Function 'ctx_free' argument 1 names different: declaration 'o' definition 'c'. [funcArgNamesDifferent] smenu-1.2.0/ctxopt.c:196:17: note: Function 'ctx_free' argument 1 names different: declaration 'o' definition 'c'. smenu-1.2.0/ctxopt.c:1550:17: note: Function 'ctx_free' argument 1 names different: declaration 'o' definition 'c'. smenu-1.2.0/ctxopt.c:1613:22: style:inconclusive: Function 'seen_opt_free' argument 1 names different: declaration 'seen_opt' definition 'so'. [funcArgNamesDifferent] smenu-1.2.0/ctxopt.c:214:22: note: Function 'seen_opt_free' argument 1 names different: declaration 'seen_opt' definition 'so'. smenu-1.2.0/ctxopt.c:1613:22: note: Function 'seen_opt_free' argument 1 names different: declaration 'seen_opt' definition 'so'. smenu-1.2.0/ctxopt.c:1701:24: style:inconclusive: Function 'constraint_free' argument 1 names different: declaration 'cstr' definition 'c'. [funcArgNamesDifferent] smenu-1.2.0/ctxopt.c:229:24: note: Function 'constraint_free' argument 1 names different: declaration 'cstr' definition 'c'. smenu-1.2.0/ctxopt.c:1701:24: note: Function 'constraint_free' argument 1 names different: declaration 'cstr' definition 'c'. smenu-1.2.0/ctxopt.c:2829:38: style:inconclusive: Function 'ctxopt_init' argument 2 names different: declaration 'flags' definition 'init_flags'. [funcArgNamesDifferent] smenu-1.2.0/ctxopt.h:78:38: note: Function 'ctxopt_init' argument 2 names different: declaration 'flags' definition 'init_flags'. smenu-1.2.0/ctxopt.c:2829:38: note: Function 'ctxopt_init' argument 2 names different: declaration 'flags' definition 'init_flags'. smenu-1.2.0/ctxopt.c:3424:51: style:inconclusive: Function 'ctxopt_analyze' argument 3 names different: declaration 'rem_count' definition 'nb_rem_args'. [funcArgNamesDifferent] smenu-1.2.0/ctxopt.h:81:51: note: Function 'ctxopt_analyze' argument 3 names different: declaration 'rem_count' definition 'nb_rem_args'. smenu-1.2.0/ctxopt.c:3424:51: note: Function 'ctxopt_analyze' argument 3 names different: declaration 'rem_count' definition 'nb_rem_args'. smenu-1.2.0/ctxopt.c:843:20: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:1086:20: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:1101:16: style: Parameter 'str1' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:1101:29: style: Parameter 'str2' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:1146:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:1255:17: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:1507:57: style: Parameter 'pattern' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:1601:10: style: Variable 'o1' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:1601:15: style: Variable 'o2' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:1770:21: style: Variable 'before_opt' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:2006:11: style: Variable 'ctx' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:2099:38: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:2157:17: style: Variable 'first_s' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:2219:39: style: Parameter 'ctx_inst' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:2337:15: style: Variable 'bst_node' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:2459:10: style: Variable 's_orig' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:2829:20: style: Parameter 'prog_name' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:2835:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:2925:39: style: Parameter 'par_str' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:2931:11: style: Variable 'node' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:3199:14: style: Variable 'prev_word' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:3427:10: style: Variable 'ctxopt_debug_env' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:3743:25: style: Variable 'tmp_opt' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:3770:24: style: Variable 'tmp_opt_inst' can be declared as pointer to const [constVariablePointer] smenu-1.2.0/ctxopt.c:4278:74: style: Parameter 'par' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:4312:56: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:4312:70: style: Parameter 'par' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:4343:59: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:4343:73: style: Parameter 'par' can be declared as pointer to const [constParameterPointer] smenu-1.2.0/ctxopt.c:1194:11: warning: Uninitialized variable: *end [uninitvar] smenu-1.2.0/ctxopt.c:4635:43: note: Calling function 'xstrtok_r', 3rd argument '&end_str' value is smenu-1.2.0/ctxopt.c:1194:11: note: Uninitialized variable: *end diff: head smenu-1.2.0/ctxopt.c:1011:9: style: Condition 'q!=0' is always true [knownConditionTrueFalse] head smenu-1.2.0/ctxopt.c:1285:28: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4597:24: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4597:24: note: Assignment 'value=xstrdup(va_arg(args,char*))', assigned value is 0 smenu-1.2.0/ctxopt.c:4601:34: note: Calling function 'str2argv', 1st argument 'value' value is 0 smenu-1.2.0/ctxopt.c:1285:28: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:1521:10: warning: If memory allocation fails, then there is a possible null pointer dereference: full_pattern [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:1519:25: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:1519:25: note: Assignment 'full_pattern=xmalloc(strlen(pattern)+n+4)', assigned value is 0 smenu-1.2.0/ctxopt.c:1521:10: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:1522:10: warning: If memory allocation fails, then there is a possible null pointer dereference: full_pattern [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:1519:25: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:1519:25: note: Assignment 'full_pattern=xmalloc(strlen(pattern)+n+4)', assigned value is 0 smenu-1.2.0/ctxopt.c:1522:10: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:1523:10: warning: If memory allocation fails, then there is a possible null pointer dereference: full_pattern [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:1519:25: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:1519:25: note: Assignment 'full_pattern=xmalloc(strlen(pattern)+n+4)', assigned value is 0 smenu-1.2.0/ctxopt.c:1523:10: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:1524:10: warning: If memory allocation fails, then there is a possible null pointer dereference: full_pattern [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:1519:25: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:1519:25: note: Assignment 'full_pattern=xmalloc(strlen(pattern)+n+4)', assigned value is 0 smenu-1.2.0/ctxopt.c:1524:10: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:1526:17: warning: If memory allocation fails, then there is a possible null pointer dereference: full_pattern [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:1519:25: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:1519:25: note: Assignment 'full_pattern=xmalloc(strlen(pattern)+n+4)', assigned value is 0 smenu-1.2.0/ctxopt.c:1526:17: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:2054:13: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:2052:25: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:2052:25: note: Assignment 'str=xstrdup(user_string)', assigned value is 0 smenu-1.2.0/ctxopt.c:2054:13: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:2114:7: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:2110:18: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:2110:18: note: Assignment 'new=xstrdup(word)', assigned value is 0 smenu-1.2.0/ctxopt.c:2114:7: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:2711:4: warning: If memory allocation fails, then there is a possible null pointer dereference: *opt [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:2709:17: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:2709:17: note: Assignment '*opt=xmalloc(sizeof(struct opt_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:2711:4: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:2855:5: warning: If memory allocation fails, then there is a possible null pointer dereference: err_functions [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:2853:26: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:2853:26: note: Assignment 'err_functions=xmalloc(CTXOPTERRSIZ*sizeof(void*))', assigned value is 0 smenu-1.2.0/ctxopt.c:2855:5: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:2986:11: warning: If memory allocation fails, then there is a possible null pointer dereference: par [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:2985:30: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:2985:30: note: Assignment 'par=xmalloc(sizeof(struct par_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:2986:11: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:2987:11: warning: If memory allocation fails, then there is a possible null pointer dereference: par [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:2985:30: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:2985:30: note: Assignment 'par=xmalloc(sizeof(struct par_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:2987:11: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3044:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3043:38: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3043:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3044:3: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3045:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3043:38: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3043:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3045:3: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3046:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3043:38: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3043:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3046:3: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3047:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3043:38: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3043:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3047:3: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3048:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3043:38: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3043:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3048:3: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3049:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3043:38: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3043:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3049:3: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3050:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3043:38: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3043:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3050:3: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3076:5: warning: If memory allocation fails, then there is a possible null pointer dereference: seen_opt [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3075:29: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3075:29: note: Assignment 'seen_opt=xmalloc(sizeof(struct seen_opt_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3076:5: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3077:5: warning: If memory allocation fails, then there is a possible null pointer dereference: seen_opt [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3075:29: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3075:29: note: Assignment 'seen_opt=xmalloc(sizeof(struct seen_opt_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3077:5: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3078:5: warning: If memory allocation fails, then there is a possible null pointer dereference: seen_opt [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3075:29: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3075:29: note: Assignment 'seen_opt=xmalloc(sizeof(struct seen_opt_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3078:5: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3702:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3701:42: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3701:42: note: Assignment 'opt_inst=xmalloc(sizeof(struct opt_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3702:9: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3703:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3701:42: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3701:42: note: Assignment 'opt_inst=xmalloc(sizeof(struct opt_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3703:9: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3704:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3701:42: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3701:42: note: Assignment 'opt_inst=xmalloc(sizeof(struct opt_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3704:9: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:3705:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_inst [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:3701:42: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:3701:42: note: Assignment 'opt_inst=xmalloc(sizeof(struct opt_inst_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:3705:9: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:4017:6: warning: If memory allocation fails, then there is a possible null pointer dereference: *rem_args [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4016:29: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4016:29: note: Assignment '*rem_args=xmalloc(sizeof(char*))', assigned value is 0 smenu-1.2.0/ctxopt.c:4017:6: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:4590:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cstr [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4589:35: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4589:35: note: Assignment 'cstr=xmalloc(sizeof(struct constraint_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:4590:9: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:4599:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cstr [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4589:35: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4589:35: note: Assignment 'cstr=xmalloc(sizeof(struct constraint_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:4599:9: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:4600:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cstr [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4589:35: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4589:35: note: Assignment 'cstr=xmalloc(sizeof(struct constraint_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:4600:9: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:4601:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cstr [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4589:35: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4589:35: note: Assignment 'cstr=xmalloc(sizeof(struct constraint_t))', assigned value is 0 smenu-1.2.0/ctxopt.c:4601:9: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:4794:21: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4790:22: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4790:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.2.0/ctxopt.c:4794:21: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:4823:21: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:4819:22: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:4819:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.2.0/ctxopt.c:4823:21: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:551:10: warning: If memory allocation fails, then there is a possible null pointer dereference: allocated [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:550:22: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:550:22: note: Assignment 'allocated=xmalloc(strlen(p)+1)', assigned value is 0 smenu-1.2.0/ctxopt.c:551:10: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:571:10: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:570:14: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:570:14: note: Assignment 'p=xmalloc(len+1)', assigned value is 0 smenu-1.2.0/ctxopt.c:571:10: note: Null pointer dereference 2.17.0 smenu-1.2.0/ctxopt.c:572:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/ctxopt.c:570:14: note: Assuming allocation function fails smenu-1.2.0/ctxopt.c:570:14: note: Assignment 'p=xmalloc(len+1)', assigned value is 0 smenu-1.2.0/ctxopt.c:572:3: note: Null pointer dereference head smenu-1.2.0/index.c:43:16: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/index.c:41:41: note: Assuming allocation function fails smenu-1.2.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.2.0/index.c:43:16: note: Null pointer dereference head smenu-1.2.0/index.c:43:27: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/index.c:41:41: note: Assuming allocation function fails smenu-1.2.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.2.0/index.c:43:27: note: Null pointer dereference 2.17.0 smenu-1.2.0/xmalloc.c:144:10: warning: If memory allocation fails, then there is a possible null pointer dereference: allocated [nullPointerOutOfMemory] smenu-1.2.0/xmalloc.c:143:22: note: Assuming allocation function fails smenu-1.2.0/xmalloc.c:143:22: note: Assignment 'allocated=xmalloc(strlen(p)+1)', assigned value is 0 smenu-1.2.0/xmalloc.c:144:10: note: Null pointer dereference 2.17.0 smenu-1.2.0/xmalloc.c:176:10: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/xmalloc.c:175:14: note: Assuming allocation function fails smenu-1.2.0/xmalloc.c:175:14: note: Assignment 'p=xmalloc(len+1)', assigned value is 0 smenu-1.2.0/xmalloc.c:176:10: note: Null pointer dereference 2.17.0 smenu-1.2.0/xmalloc.c:177:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.2.0/xmalloc.c:175:14: note: Assuming allocation function fails smenu-1.2.0/xmalloc.c:175:14: note: Assignment 'p=xmalloc(len+1)', assigned value is 0 smenu-1.2.0/xmalloc.c:177:3: note: Null pointer dereference DONE