2025-06-30 18:58 ftp://ftp.de.debian.org/debian/pool/main/s/smenu/smenu_1.4.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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: dfa16af (2025-06-30 19:43:56 +0200) count: 124 155 elapsed-time: 3.2 3.3 head-timing-info: old-timing-info: head results: smenu-1.4.0/fgetc.c:37:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.4.0/fgetc.c:59:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] smenu-1.4.0/safe.c:27:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.4.0/safe.c:41:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.4.0/safe.c:52:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.4.0/safe.c:63:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.4.0/list.c:58:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.4.0/list.c:46:22: note: Assuming allocation function fails smenu-1.4.0/list.c:46:22: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.4.0/list.c:47:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.4.0/list.c:58:3: note: Null pointer dereference smenu-1.4.0/list.c:59:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.4.0/list.c:46:22: note: Assuming allocation function fails smenu-1.4.0/list.c:46:22: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.4.0/list.c:47:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.4.0/list.c:59:3: note: Null pointer dereference smenu-1.4.0/list.c:60:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.4.0/list.c:46:22: note: Assuming allocation function fails smenu-1.4.0/list.c:46:22: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.4.0/list.c:47:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.4.0/list.c:60:3: note: Null pointer dereference smenu-1.4.0/utils.c:332:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.4.0/xmalloc.c:70:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.4.0/xmalloc.c:94:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.4.0/xmalloc.c:116:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.4.0/xmalloc.c:139:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.4.0/xmalloc.c:167:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.4.0/xmalloc.c:109:16: style:inconclusive: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. [funcArgNamesDifferent] smenu-1.4.0/xmalloc.h:17:16: note: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. smenu-1.4.0/xmalloc.c:109:16: note: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. smenu-1.4.0/xmalloc.c:131:21: style:inconclusive: Function 'xstrdup' argument 1 names different: declaration 'p' definition 'str'. [funcArgNamesDifferent] smenu-1.4.0/xmalloc.h:20:21: note: Function 'xstrdup' argument 1 names different: declaration 'p' definition 'str'. smenu-1.4.0/xmalloc.c:131:21: note: Function 'xstrdup' argument 1 names different: declaration 'p' definition 'str'. smenu-1.4.0/index.c:42:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.4.0/index.c:41:41: note: Assuming allocation function fails smenu-1.4.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.4.0/index.c:42:5: note: Null pointer dereference smenu-1.4.0/index.c:43:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.4.0/index.c:41:41: note: Assuming allocation function fails smenu-1.4.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.4.0/index.c:43:5: note: Null pointer dereference smenu-1.4.0/index.c:43:16: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.4.0/index.c:41:41: note: Assuming allocation function fails smenu-1.4.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.4.0/index.c:43:16: note: Null pointer dereference smenu-1.4.0/index.c:43:27: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.4.0/index.c:41:41: note: Assuming allocation function fails smenu-1.4.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.4.0/index.c:43:27: note: Null pointer dereference smenu-1.4.0/index.c:44:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.4.0/index.c:41:41: note: Assuming allocation function fails smenu-1.4.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.4.0/index.c:44:5: note: Null pointer dereference smenu-1.4.0/index.c:47:12: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.4.0/index.c:41:41: note: Assuming allocation function fails smenu-1.4.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.4.0/index.c:47:12: note: Null pointer dereference smenu-1.4.0/index.c:281:28: style:inconclusive: Function 'insert_sorted_index' argument 1 names different: declaration 'array' definition 'array_ptr'. [funcArgNamesDifferent] smenu-1.4.0/index.h:50:28: note: Function 'insert_sorted_index' argument 1 names different: declaration 'array' definition 'array_ptr'. smenu-1.4.0/index.c:281:28: note: Function 'insert_sorted_index' argument 1 names different: declaration 'array' definition 'array_ptr'. smenu-1.4.0/index.c:281:57: style:inconclusive: Function 'insert_sorted_index' argument 3 names different: declaration 'filled' definition 'nb'. [funcArgNamesDifferent] smenu-1.4.0/index.h:50:53: note: Function 'insert_sorted_index' argument 3 names different: declaration 'filled' definition 'nb'. smenu-1.4.0/index.c:281:57: note: Function 'insert_sorted_index' argument 3 names different: declaration 'filled' definition 'nb'. smenu-1.4.0/index.c:330:33: style:inconclusive: Function 'insert_sorted_ptr' argument 1 names different: declaration 'array' definition 'array_ptr'. [funcArgNamesDifferent] smenu-1.4.0/index.h:53:33: note: Function 'insert_sorted_ptr' argument 1 names different: declaration 'array' definition 'array_ptr'. smenu-1.4.0/index.c:330:33: note: Function 'insert_sorted_ptr' argument 1 names different: declaration 'array' definition 'array_ptr'. smenu-1.4.0/index.c:332:33: style:inconclusive: Function 'insert_sorted_ptr' argument 3 names different: declaration 'filled' definition 'nb'. [funcArgNamesDifferent] smenu-1.4.0/index.h:55:33: note: Function 'insert_sorted_ptr' argument 3 names different: declaration 'filled' definition 'nb'. smenu-1.4.0/index.c:332:33: note: Function 'insert_sorted_ptr' argument 3 names different: declaration 'filled' definition 'nb'. smenu-1.4.0/index.c:213:39: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/index.c:242:46: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/utils.c:357:5: error: Memory leak: tmp [memleak] smenu-1.4.0/utils.c:147:20: style:inconclusive: Function 'concat' argument 1 names different: declaration 'str1' definition 's1'. [funcArgNamesDifferent] smenu-1.4.0/utils.h:45:20: note: Function 'concat' argument 1 names different: declaration 'str1' definition 's1'. smenu-1.4.0/utils.c:147:20: note: Function 'concat' argument 1 names different: declaration 'str1' definition 's1'. smenu-1.4.0/utils.c:210:30: style:inconclusive: Function 'ltrim' argument 2 names different: declaration 'trim' definition 'trim_str'. [funcArgNamesDifferent] smenu-1.4.0/utils.h:51:30: note: Function 'ltrim' argument 2 names different: declaration 'trim' definition 'trim_str'. smenu-1.4.0/utils.c:210:30: note: Function 'ltrim' argument 2 names different: declaration 'trim' definition 'trim_str'. smenu-1.4.0/utils.c:230:30: style:inconclusive: Function 'rtrim' argument 2 names different: declaration 'trim' definition 'trim_str'. [funcArgNamesDifferent] smenu-1.4.0/utils.h:54:30: note: Function 'rtrim' argument 2 names different: declaration 'trim' definition 'trim_str'. smenu-1.4.0/utils.c:230:30: note: Function 'rtrim' argument 2 names different: declaration 'trim' definition 'trim_str'. smenu-1.4.0/utils.c:230:47: style:inconclusive: Function 'rtrim' argument 3 names different: declaration 'min_len' definition 'min'. [funcArgNamesDifferent] smenu-1.4.0/utils.h:54:43: note: Function 'rtrim' argument 3 names different: declaration 'min_len' definition 'min'. smenu-1.4.0/utils.c:230:47: note: Function 'rtrim' argument 3 names different: declaration 'min_len' definition 'min'. smenu-1.4.0/utils.c:269:17: style:inconclusive: Function 'my_strcpy' argument 1 names different: declaration 'dst' definition 'str1'. [funcArgNamesDifferent] smenu-1.4.0/utils.h:60:17: note: Function 'my_strcpy' argument 1 names different: declaration 'dst' definition 'str1'. smenu-1.4.0/utils.c:269:17: note: Function 'my_strcpy' argument 1 names different: declaration 'dst' definition 'str1'. smenu-1.4.0/utils.c:269:29: style:inconclusive: Function 'my_strcpy' argument 2 names different: declaration 'src' definition 'str2'. [funcArgNamesDifferent] smenu-1.4.0/utils.h:60:28: note: Function 'my_strcpy' argument 2 names different: declaration 'src' definition 'str2'. smenu-1.4.0/utils.c:269:29: note: Function 'my_strcpy' argument 2 names different: declaration 'src' definition 'str2'. smenu-1.4.0/utils.c:303:30: style:inconclusive: Function 'my_wcscasecmp' argument 1 names different: declaration 'w1s' definition 's1'. [funcArgNamesDifferent] smenu-1.4.0/utils.h:69:30: note: Function 'my_wcscasecmp' argument 1 names different: declaration 'w1s' definition 's1'. smenu-1.4.0/utils.c:303:30: note: Function 'my_wcscasecmp' argument 1 names different: declaration 'w1s' definition 's1'. smenu-1.4.0/utils.c:303:49: style:inconclusive: Function 'my_wcscasecmp' argument 2 names different: declaration 'w2s' definition 's2'. [funcArgNamesDifferent] smenu-1.4.0/utils.h:69:50: note: Function 'my_wcscasecmp' argument 2 names different: declaration 'w2s' definition 's2'. smenu-1.4.0/utils.c:303:49: note: Function 'my_wcscasecmp' argument 2 names different: declaration 'w2s' definition 's2'. smenu-1.4.0/utils.c:195:17: style: Parameter 'str1' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/utils.c:195:29: style: Parameter 'str2' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/utils.c:480:11: style: Variable 'l' is assigned a value that is never used. [unreadVariable] smenu-1.4.0/smenu.c:7560:26: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] smenu-1.4.0/ctxopt.c:317:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.4.0/ctxopt.c:365:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.4.0/ctxopt.c:2410:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seen [valueFlowBailoutIncompleteVar] smenu-1.4.0/ctxopt.c:3010:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] smenu-1.4.0/ctxopt.c:3578:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.4.0/ctxopt.c:4407:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smenu-1.4.0/ctxopt.c:4432:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] smenu-1.4.0/ctxopt.c:4491:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smenu-1.4.0/ctxopt.c:4544:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable args [valueFlowBailoutIncompleteVar] smenu-1.4.0/ctxopt.c:4595:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable args [valueFlowBailoutIncompleteVar] smenu-1.4.0/ctxopt.c:4894:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable args [valueFlowBailoutIncompleteVar] smenu-1.4.0/utf8.c:110:9: warning:inconclusive: Width 6 given in format string (no. 1) is smaller than destination buffer 'tmp[9]'. [invalidScanfFormatWidth_smaller] smenu-1.4.0/utf8.c:530:3: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] smenu-1.4.0/utf8.c:529:17: note: Assuming allocation function fails smenu-1.4.0/utf8.c:529:17: note: Assignment 'w=xmalloc((size+1)*sizeof(wchar_t))', assigned value is 0 smenu-1.4.0/utf8.c:530:3: note: Null pointer dereference smenu-1.4.0/utf8.c:76:30: style:inconclusive: Function 'utf8_interpret' argument 2 names different: declaration 'sc' definition 'substitute'. [funcArgNamesDifferent] smenu-1.4.0/utf8.h:46:30: note: Function 'utf8_interpret' argument 2 names different: declaration 'sc' definition 'substitute'. smenu-1.4.0/utf8.c:76:30: note: Function 'utf8_interpret' argument 2 names different: declaration 'sc' definition 'substitute'. smenu-1.4.0/utf8.c:373:29: style:inconclusive: Function 'utf8_sanitize' argument 2 names different: declaration 'sc' definition 'substitute'. [funcArgNamesDifferent] smenu-1.4.0/utf8.h:40:29: note: Function 'utf8_sanitize' argument 2 names different: declaration 'sc' definition 'substitute'. smenu-1.4.0/utf8.c:373:29: note: Function 'utf8_sanitize' argument 2 names different: declaration 'sc' definition 'substitute'. smenu-1.4.0/utf8.c:416:21: style:inconclusive: Function 'utf8_validate' argument 1 names different: declaration 'str' definition 's'. [funcArgNamesDifferent] smenu-1.4.0/utf8.h:49:21: note: Function 'utf8_validate' argument 1 names different: declaration 'str' definition 's'. smenu-1.4.0/utf8.c:416:21: note: Function 'utf8_validate' argument 1 names different: declaration 'str' definition 's'. smenu-1.4.0/utf8.c:555:34: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:2220:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.4.0/ctxopt.c:2235:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.4.0/ctxopt.c:3161:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.4.0/ctxopt.c:3195:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.4.0/ctxopt.c:3215:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.4.0/ctxopt.c:3221:26: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] smenu-1.4.0/ctxopt.c:1045:9: style: Condition 'q!=0' is always true [knownConditionTrueFalse] smenu-1.4.0/ctxopt.c:3326:17: style: Condition 'end>0' is always true [knownConditionTrueFalse] smenu-1.4.0/ctxopt.c:3310:13: note: Assuming that condition 'len>1' is not redundant smenu-1.4.0/ctxopt.c:3323:17: note: Assignment 'end=len-1', assigned value is greater than 0 smenu-1.4.0/ctxopt.c:3326:17: note: Condition 'end>0' is always true smenu-1.4.0/ctxopt.c:4255:34: style: Condition 'init_opts(opts_specs,ctx)==0' is always false [knownConditionTrueFalse] smenu-1.4.0/ctxopt.c:4255:16: note: Calling function 'init_opts' returns 1 smenu-1.4.0/ctxopt.c:4255:34: note: Condition 'init_opts(opts_specs,ctx)==0' is always false smenu-1.4.0/ctxopt.c:1907:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] smenu-1.4.0/ctxopt.c:1940:11: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] smenu-1.4.0/ctxopt.c:692:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:639:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:639:22: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:640:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.4.0/ctxopt.c:692:3: note: Null pointer dereference smenu-1.4.0/ctxopt.c:693:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:639:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:639:22: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:640:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.4.0/ctxopt.c:693:3: note: Null pointer dereference smenu-1.4.0/ctxopt.c:694:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:639:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:639:22: note: Assignment 'ret=xmalloc(sizeof(struct ll_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:640:11: note: Calling function 'll_init', 1st argument 'ret' value is 0 smenu-1.4.0/ctxopt.c:694:3: note: Null pointer dereference smenu-1.4.0/ctxopt.c:902:4: warning: If memory allocation fails, then there is a possible null pointer dereference: *array [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:893:19: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:893:19: note: Assignment '*array=xmalloc((list->len+1)*sizeof(char*))', assigned value is 0 smenu-1.4.0/ctxopt.c:894:15: note: Assuming condition is false smenu-1.4.0/ctxopt.c:902:4: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1093:25: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4914:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4914:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.4.0/ctxopt.c:4915:15: note: Calling function 'ltrim', 1st argument 'str' value is 0 smenu-1.4.0/ctxopt.c:1093:25: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1094:25: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4914:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4914:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.4.0/ctxopt.c:4915:15: note: Calling function 'ltrim', 1st argument 'str' value is 0 smenu-1.4.0/ctxopt.c:1094:25: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1110:23: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4914:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4914:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.4.0/ctxopt.c:4916:15: note: Calling function 'rtrim', 1st argument 'str' value is 0 smenu-1.4.0/ctxopt.c:1110:23: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1111:40: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4914:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4914:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.4.0/ctxopt.c:4916:15: note: Calling function 'rtrim', 1st argument 'str' value is 0 smenu-1.4.0/ctxopt.c:1111:40: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1112:5: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4914:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4914:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.4.0/ctxopt.c:4916:15: note: Calling function 'rtrim', 1st argument 'str' value is 0 smenu-1.4.0/ctxopt.c:1112:5: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1183:18: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4402:19: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4402:19: note: Assignment 'format=xstrdup(args[0])', assigned value is 0 smenu-1.4.0/ctxopt.c:4403:22: note: Calling function 'strappend', 1st argument 'format' value is 0 smenu-1.4.0/ctxopt.c:1183:18: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1315:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4721:24: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4721:24: note: Assignment 'value=xstrdup(va_arg(args,char*))', assigned value is 0 smenu-1.4.0/ctxopt.c:4725:34: note: Calling function 'str2argv', 1st argument 'value' value is 0 smenu-1.4.0/ctxopt.c:1315:11: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1320:13: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4721:24: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4721:24: note: Assignment 'value=xstrdup(va_arg(args,char*))', assigned value is 0 smenu-1.4.0/ctxopt.c:4725:34: note: Calling function 'str2argv', 1st argument 'value' value is 0 smenu-1.4.0/ctxopt.c:1320:13: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1320:28: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4721:24: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4721:24: note: Assignment 'value=xstrdup(va_arg(args,char*))', assigned value is 0 smenu-1.4.0/ctxopt.c:4725:34: note: Calling function 'str2argv', 1st argument 'value' value is 0 smenu-1.4.0/ctxopt.c:1320:28: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1323:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4721:24: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4721:24: note: Assignment 'value=xstrdup(va_arg(args,char*))', assigned value is 0 smenu-1.4.0/ctxopt.c:4725:34: note: Calling function 'str2argv', 1st argument 'value' value is 0 smenu-1.4.0/ctxopt.c:1323:11: note: Null pointer dereference smenu-1.4.0/ctxopt.c:1969:18: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:1864:17: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:1864:17: note: Assignment 'line=xstrdup(" ")', assigned value is 0 smenu-1.4.0/ctxopt.c:1866:15: note: Assuming condition is false smenu-1.4.0/ctxopt.c:1969:18: note: Null pointer dereference smenu-1.4.0/ctxopt.c:546:16: style:inconclusive: Function 'xcalloc' argument 1 names different: declaration 'num' definition 'n'. [funcArgNamesDifferent] smenu-1.4.0/ctxopt.c:59:16: note: Function 'xcalloc' argument 1 names different: declaration 'num' definition 'n'. smenu-1.4.0/ctxopt.c:546:16: note: Function 'xcalloc' argument 1 names different: declaration 'num' definition 'n'. smenu-1.4.0/ctxopt.c:564:16: style:inconclusive: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. [funcArgNamesDifferent] smenu-1.4.0/ctxopt.c:62:16: note: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. smenu-1.4.0/ctxopt.c:564:16: note: Function 'xrealloc' argument 1 names different: declaration 'ptr' definition 'p'. smenu-1.4.0/ctxopt.c:1136:15: style:inconclusive: Function 'strpref' argument 1 names different: declaration 's1' definition 'str1'. [funcArgNamesDifferent] smenu-1.4.0/ctxopt.c:165:15: note: Function 'strpref' argument 1 names different: declaration 's1' definition 'str1'. smenu-1.4.0/ctxopt.c:1136:15: note: Function 'strpref' argument 1 names different: declaration 's1' definition 'str1'. smenu-1.4.0/ctxopt.c:1136:27: style:inconclusive: Function 'strpref' argument 2 names different: declaration 's2' definition 'str2'. [funcArgNamesDifferent] smenu-1.4.0/ctxopt.c:165:25: note: Function 'strpref' argument 2 names different: declaration 's2' definition 'str2'. smenu-1.4.0/ctxopt.c:1136:27: note: Function 'strpref' argument 2 names different: declaration 's2' definition 'str2'. smenu-1.4.0/ctxopt.c:1588:16: style:inconclusive: Function 'ctx_free' argument 1 names different: declaration 'o' definition 'c'. [funcArgNamesDifferent] smenu-1.4.0/ctxopt.c:200:16: note: Function 'ctx_free' argument 1 names different: declaration 'o' definition 'c'. smenu-1.4.0/ctxopt.c:1588:16: note: Function 'ctx_free' argument 1 names different: declaration 'o' definition 'c'. smenu-1.4.0/ctxopt.c:1651:21: style:inconclusive: Function 'seen_opt_free' argument 1 names different: declaration 'seen_opt' definition 'so'. [funcArgNamesDifferent] smenu-1.4.0/ctxopt.c:218:21: note: Function 'seen_opt_free' argument 1 names different: declaration 'seen_opt' definition 'so'. smenu-1.4.0/ctxopt.c:1651:21: note: Function 'seen_opt_free' argument 1 names different: declaration 'seen_opt' definition 'so'. smenu-1.4.0/ctxopt.c:1739:23: style:inconclusive: Function 'constraint_free' argument 1 names different: declaration 'cstr' definition 'c'. [funcArgNamesDifferent] smenu-1.4.0/ctxopt.c:233:23: note: Function 'constraint_free' argument 1 names different: declaration 'cstr' definition 'c'. smenu-1.4.0/ctxopt.c:1739:23: note: Function 'constraint_free' argument 1 names different: declaration 'cstr' definition 'c'. smenu-1.4.0/ctxopt.c:2886:36: style:inconclusive: Function 'ctxopt_init' argument 2 names different: declaration 'flags' definition 'init_flags'. [funcArgNamesDifferent] smenu-1.4.0/ctxopt.h:78:36: note: Function 'ctxopt_init' argument 2 names different: declaration 'flags' definition 'init_flags'. smenu-1.4.0/ctxopt.c:2886:36: note: Function 'ctxopt_init' argument 2 names different: declaration 'flags' definition 'init_flags'. smenu-1.4.0/ctxopt.c:3485:49: style:inconclusive: Function 'ctxopt_analyze' argument 3 names different: declaration 'rem_count' definition 'nb_rem_args'. [funcArgNamesDifferent] smenu-1.4.0/ctxopt.h:81:49: note: Function 'ctxopt_analyze' argument 3 names different: declaration 'rem_count' definition 'nb_rem_args'. smenu-1.4.0/ctxopt.c:3485:49: note: Function 'ctxopt_analyze' argument 3 names different: declaration 'rem_count' definition 'nb_rem_args'. smenu-1.4.0/ctxopt.c:877:19: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:1121:19: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:1136:15: style: Parameter 'str1' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:1136:27: style: Parameter 'str2' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:1181:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:1290:16: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:1545:54: style: Parameter 'pattern' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:1639:10: style: Variable 'o1' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:1639:15: style: Variable 'o2' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:1808:20: style: Variable 'before_opt' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:2054:10: style: Variable 'ctx' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:2152:37: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:2210:16: style: Variable 'first_s' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:2272:38: style: Parameter 'ctx_inst' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:2390:14: style: Variable 'bst_node' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:2516:9: style: Variable 's_orig' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:2886:19: style: Parameter 'prog_name' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:2892:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:2982:37: style: Parameter 'par_str' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:2988:10: style: Variable 'node' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:3259:14: style: Variable 'prev_word' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:3487:9: style: Variable 'ctxopt_debug_env' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:3810:24: style: Variable 'tmp_opt' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:3837:23: style: Variable 'tmp_opt_inst' can be declared as pointer to const [constVariablePointer] smenu-1.4.0/ctxopt.c:4388:71: style: Parameter 'par' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:4424:54: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:4424:67: style: Parameter 'par' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:4457:57: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:4457:70: style: Parameter 'par' can be declared as pointer to const [constParameterPointer] smenu-1.4.0/ctxopt.c:1229:11: warning: Uninitialized variable: *end [uninitvar] smenu-1.4.0/ctxopt.c:4759:43: note: Calling function 'xstrtok_r', 3rd argument '&end_str' value is smenu-1.4.0/ctxopt.c:1229:11: note: Uninitialized variable: *end diff: head smenu-1.4.0/ctxopt.c:1045:9: style: Condition 'q!=0' is always true [knownConditionTrueFalse] head smenu-1.4.0/ctxopt.c:1320:28: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4721:24: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4721:24: note: Assignment 'value=xstrdup(va_arg(args,char*))', assigned value is 0 smenu-1.4.0/ctxopt.c:4725:34: note: Calling function 'str2argv', 1st argument 'value' value is 0 smenu-1.4.0/ctxopt.c:1320:28: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:1559:10: warning: If memory allocation fails, then there is a possible null pointer dereference: full_pattern [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:1557:25: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:1557:25: note: Assignment 'full_pattern=xmalloc(strlen(pattern)+n+4)', assigned value is 0 smenu-1.4.0/ctxopt.c:1559:10: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:1560:10: warning: If memory allocation fails, then there is a possible null pointer dereference: full_pattern [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:1557:25: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:1557:25: note: Assignment 'full_pattern=xmalloc(strlen(pattern)+n+4)', assigned value is 0 smenu-1.4.0/ctxopt.c:1560:10: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:1561:10: warning: If memory allocation fails, then there is a possible null pointer dereference: full_pattern [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:1557:25: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:1557:25: note: Assignment 'full_pattern=xmalloc(strlen(pattern)+n+4)', assigned value is 0 smenu-1.4.0/ctxopt.c:1561:10: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:1562:10: warning: If memory allocation fails, then there is a possible null pointer dereference: full_pattern [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:1557:25: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:1557:25: note: Assignment 'full_pattern=xmalloc(strlen(pattern)+n+4)', assigned value is 0 smenu-1.4.0/ctxopt.c:1562:10: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:1564:17: warning: If memory allocation fails, then there is a possible null pointer dereference: full_pattern [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:1557:25: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:1557:25: note: Assignment 'full_pattern=xmalloc(strlen(pattern)+n+4)', assigned value is 0 smenu-1.4.0/ctxopt.c:1564:17: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:2107:13: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:2105:24: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:2105:24: note: Assignment 'str=xstrdup(user_string)', assigned value is 0 smenu-1.4.0/ctxopt.c:2107:13: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:2167:7: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:2163:18: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:2163:18: note: Assignment 'new=xstrdup(word)', assigned value is 0 smenu-1.4.0/ctxopt.c:2167:7: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:2768:4: warning: If memory allocation fails, then there is a possible null pointer dereference: *opt [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:2766:17: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:2766:17: note: Assignment '*opt=xmalloc(sizeof(struct opt_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:2768:4: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:2912:5: warning: If memory allocation fails, then there is a possible null pointer dereference: err_functions [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:2910:26: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:2910:26: note: Assignment 'err_functions=xmalloc(CTXOPTERRSIZ*sizeof(void*))', assigned value is 0 smenu-1.4.0/ctxopt.c:2912:5: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3044:11: warning: If memory allocation fails, then there is a possible null pointer dereference: par [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3043:30: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3043:30: note: Assignment 'par=xmalloc(sizeof(struct par_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3044:11: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3045:11: warning: If memory allocation fails, then there is a possible null pointer dereference: par [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3043:30: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3043:30: note: Assignment 'par=xmalloc(sizeof(struct par_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3045:11: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3102:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3101:38: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3101:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3102:3: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3103:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3101:38: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3101:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3103:3: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3104:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3101:38: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3101:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3104:3: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3105:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3101:38: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3101:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3105:3: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3106:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3101:38: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3101:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3106:3: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3107:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3101:38: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3101:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3107:3: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3108:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3101:38: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3101:38: note: Assignment 'ctx_inst=xmalloc(sizeof(struct ctx_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3108:3: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3134:5: warning: If memory allocation fails, then there is a possible null pointer dereference: seen_opt [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3133:29: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3133:29: note: Assignment 'seen_opt=xmalloc(sizeof(struct seen_opt_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3134:5: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3135:5: warning: If memory allocation fails, then there is a possible null pointer dereference: seen_opt [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3133:29: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3133:29: note: Assignment 'seen_opt=xmalloc(sizeof(struct seen_opt_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3135:5: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3136:5: warning: If memory allocation fails, then there is a possible null pointer dereference: seen_opt [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3133:29: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3133:29: note: Assignment 'seen_opt=xmalloc(sizeof(struct seen_opt_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3136:5: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3769:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3768:42: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3768:42: note: Assignment 'opt_inst=xmalloc(sizeof(struct opt_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3769:9: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3770:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3768:42: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3768:42: note: Assignment 'opt_inst=xmalloc(sizeof(struct opt_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3770:9: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3771:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3768:42: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3768:42: note: Assignment 'opt_inst=xmalloc(sizeof(struct opt_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3771:9: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:3772:9: warning: If memory allocation fails, then there is a possible null pointer dereference: opt_inst [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:3768:42: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:3768:42: note: Assignment 'opt_inst=xmalloc(sizeof(struct opt_inst_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:3772:9: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:4088:6: warning: If memory allocation fails, then there is a possible null pointer dereference: *rem_args [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4087:29: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4087:29: note: Assignment '*rem_args=xmalloc(sizeof(char*))', assigned value is 0 smenu-1.4.0/ctxopt.c:4088:6: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:4714:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cstr [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4713:35: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4713:35: note: Assignment 'cstr=xmalloc(sizeof(struct constraint_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:4714:9: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:4723:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cstr [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4713:35: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4713:35: note: Assignment 'cstr=xmalloc(sizeof(struct constraint_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:4723:9: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:4724:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cstr [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4713:35: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4713:35: note: Assignment 'cstr=xmalloc(sizeof(struct constraint_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:4724:9: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:4725:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cstr [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4713:35: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4713:35: note: Assignment 'cstr=xmalloc(sizeof(struct constraint_t))', assigned value is 0 smenu-1.4.0/ctxopt.c:4725:9: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:4918:21: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4914:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4914:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.4.0/ctxopt.c:4918:21: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:4948:21: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:4944:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:4944:22: note: Assignment 'str=xstrdup(ptr)', assigned value is 0 smenu-1.4.0/ctxopt.c:4948:21: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:585:10: warning: If memory allocation fails, then there is a possible null pointer dereference: allocated [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:584:22: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:584:22: note: Assignment 'allocated=xmalloc(strlen(p)+1)', assigned value is 0 smenu-1.4.0/ctxopt.c:585:10: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:605:10: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:604:14: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:604:14: note: Assignment 'p=xmalloc(len+1)', assigned value is 0 smenu-1.4.0/ctxopt.c:605:10: note: Null pointer dereference 2.17.0 smenu-1.4.0/ctxopt.c:606:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.4.0/ctxopt.c:604:14: note: Assuming allocation function fails smenu-1.4.0/ctxopt.c:604:14: note: Assignment 'p=xmalloc(len+1)', assigned value is 0 smenu-1.4.0/ctxopt.c:606:3: note: Null pointer dereference head smenu-1.4.0/index.c:43:16: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.4.0/index.c:41:41: note: Assuming allocation function fails smenu-1.4.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.4.0/index.c:43:16: note: Null pointer dereference head smenu-1.4.0/index.c:43:27: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] smenu-1.4.0/index.c:41:41: note: Assuming allocation function fails smenu-1.4.0/index.c:41:20: note: Assignment 'p=(struct tst_node_t*)xmalloc(sizeof(struct tst_node_t))', assigned value is 0 smenu-1.4.0/index.c:43:27: note: Null pointer dereference DONE