2025-11-16 23:13 ftp://ftp.de.debian.org/debian/pool/main/s/stfl/stfl_0.22.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.48+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 2ad4620 (2025-11-14 19:45:56 +0100) count: 94 93 elapsed-time: 1.4 1.7 head-timing-info: old-timing-info: head results: stfl-0.22/example.c:34:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] stfl-0.22/binding.c:65:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_F0 [valueFlowBailoutIncompleteVar] stfl-0.22/iconv.c:116:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] stfl-0.22/iconv.c:184:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] stfl-0.22/stfl_compat.h:34:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] stfl-0.22/stfl_compat.h:33:24: note: Assuming allocation function fails stfl-0.22/stfl_compat.h:33:24: note: Assignment 'dest=malloc(n)', assigned value is 0 stfl-0.22/stfl_compat.h:34:9: note: Null pointer dereference stfl-0.22/binding.c:55:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] stfl-0.22/binding.c:53:16: note: Assuming allocation function fails stfl-0.22/binding.c:53:16: note: Assignment 'ret=malloc(keylen*sizeof(wchar_t))', assigned value is 0 stfl-0.22/binding.c:55:5: note: Null pointer dereference stfl-0.22/binding.c:81:3: warning: If memory allocation fails, then there is a possible null pointer dereference: event [nullPointerOutOfMemory] stfl-0.22/binding.c:78:25: note: Assuming allocation function fails stfl-0.22/binding.c:78:25: note: Assignment 'event=malloc(event_len*sizeof(wchar_t))', assigned value is 0 stfl-0.22/binding.c:81:3: note: Null pointer dereference stfl-0.22/binding.c:86:94: style: Parameter 'auto_desc' can be declared as pointer to const [constParameterPointer] stfl-0.22/dump.c:56:4: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] stfl-0.22/dump.c:60:3: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] stfl-0.22/dump.c:41:2: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] stfl-0.22/dump.c:39:28: note: Assuming allocation function fails stfl-0.22/dump.c:39:28: note: Assignment 'n=calloc(1,sizeof(struct txtnode))', assigned value is 0 stfl-0.22/dump.c:41:2: note: Null pointer dereference stfl-0.22/dump.c:49:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] stfl-0.22/dump.c:46:23: note: Assuming allocation function fails stfl-0.22/dump.c:46:23: note: Assignment 'buf=malloc(4096*sizeof(wchar_t))', assigned value is 0 stfl-0.22/dump.c:49:22: note: Null pointer dereference stfl-0.22/dump.c:145:2: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] stfl-0.22/dump.c:132:26: note: Assuming allocation function fails stfl-0.22/dump.c:132:26: note: Assignment 'string=malloc(sizeof(wchar_t)*(string_len+1))', assigned value is 0 stfl-0.22/dump.c:145:2: note: Null pointer dereference stfl-0.22/dump.c:138:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] stfl-0.22/dump.c:132:26: note: Assuming allocation function fails stfl-0.22/dump.c:132:26: note: Assignment 'string=malloc(sizeof(wchar_t)*(string_len+1))', assigned value is 0 stfl-0.22/dump.c:138:17: note: Null pointer addition stfl-0.22/base.c:476:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stfl-0.22/iconv.c:105:2: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] stfl-0.22/iconv.c:137:3: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] stfl-0.22/iconv.c:173:2: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] stfl-0.22/iconv.c:205:3: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] stfl-0.22/iconv.c:51:2: warning: If memory allocation fails, then there is a possible null pointer dereference: pool [nullPointerOutOfMemory] stfl-0.22/iconv.c:47:34: note: Assuming allocation function fails stfl-0.22/iconv.c:47:34: note: Assignment 'pool=malloc(sizeof(struct stfl_ipool))', assigned value is 0 stfl-0.22/iconv.c:51:2: note: Null pointer dereference stfl-0.22/iconv.c:52:2: warning: If memory allocation fails, then there is a possible null pointer dereference: pool [nullPointerOutOfMemory] stfl-0.22/iconv.c:47:34: note: Assuming allocation function fails stfl-0.22/iconv.c:47:34: note: Assignment 'pool=malloc(sizeof(struct stfl_ipool))', assigned value is 0 stfl-0.22/iconv.c:52:2: note: Null pointer dereference stfl-0.22/iconv.c:54:2: warning: If memory allocation fails, then there is a possible null pointer dereference: pool [nullPointerOutOfMemory] stfl-0.22/iconv.c:47:34: note: Assuming allocation function fails stfl-0.22/iconv.c:47:34: note: Assignment 'pool=malloc(sizeof(struct stfl_ipool))', assigned value is 0 stfl-0.22/iconv.c:54:2: note: Null pointer dereference stfl-0.22/iconv.c:55:2: warning: If memory allocation fails, then there is a possible null pointer dereference: pool [nullPointerOutOfMemory] stfl-0.22/iconv.c:47:34: note: Assuming allocation function fails stfl-0.22/iconv.c:47:34: note: Assignment 'pool=malloc(sizeof(struct stfl_ipool))', assigned value is 0 stfl-0.22/iconv.c:55:2: note: Null pointer dereference stfl-0.22/iconv.c:66:2: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] stfl-0.22/iconv.c:62:41: note: Assuming allocation function fails stfl-0.22/iconv.c:62:41: note: Assignment 'entry=malloc(sizeof(struct stfl_ipool_entry))', assigned value is 0 stfl-0.22/iconv.c:66:2: note: Null pointer dereference stfl-0.22/iconv.c:67:2: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] stfl-0.22/iconv.c:62:41: note: Assuming allocation function fails stfl-0.22/iconv.c:62:41: note: Assignment 'entry=malloc(sizeof(struct stfl_ipool_entry))', assigned value is 0 stfl-0.22/iconv.c:67:2: note: Null pointer dereference stfl-0.22/spl/mod_stfl.c:245:6: error: There is an unknown macro here somewhere. Configuration is required. If SPL_ABI is a macro then please configure it. [unknownMacro] stfl-0.22/public.c:149:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_MUTEX_INITIALIZER [valueFlowBailoutIncompleteVar] stfl-0.22/public.c:176:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_MUTEX_INITIALIZER [valueFlowBailoutIncompleteVar] stfl-0.22/style.c:54:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_NORMAL [valueFlowBailoutIncompleteVar] stfl-0.22/parser.c:441:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stfl-0.22/parser.c:466:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stfl-0.22/public.c:66:25: portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress] stfl-0.22/public.c:66:11: style: Variable 'pseudovar_sep' can be declared as pointer to const [constVariablePointer] stfl-0.22/public.c:129:22: style: Variable 'fw' can be declared as pointer to const [constVariablePointer] stfl-0.22/public.c:395:46: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] stfl-0.22/style.c:34:11: style: Redundant initialization for 'tmp2'. The initialized value is overwritten before it is read. [redundantInitialization] stfl-0.22/style.c:31:24: note: tmp2 is initialized stfl-0.22/style.c:34:11: note: tmp2 is overwritten stfl-0.22/style.c:192:65: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] stfl-0.22/widgets/wt_box.c:35:2: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] stfl-0.22/widgets/wt_box.c:34:29: note: Assuming allocation function fails stfl-0.22/widgets/wt_box.c:34:29: note: Assignment 'd=calloc(1,sizeof(struct box_data))', assigned value is 0 stfl-0.22/widgets/wt_box.c:35:2: note: Null pointer dereference stfl-0.22/widgets/wt_box.c:42:2: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] stfl-0.22/widgets/wt_box.c:41:29: note: Assuming allocation function fails stfl-0.22/widgets/wt_box.c:41:29: note: Assignment 'd=calloc(1,sizeof(struct box_data))', assigned value is 0 stfl-0.22/widgets/wt_box.c:42:2: note: Null pointer dereference stfl-0.22/widgets/wt_box.c:53:19: style: Variable 'd' can be declared as pointer to const [constVariablePointer] stfl-0.22/widgets/wt_box.c:78:19: style: Variable 'd' can be declared as pointer to const [constVariablePointer] stfl-0.22/widgets/wt_box.c:183:19: style: Variable 'd' can be declared as pointer to const [constVariablePointer] stfl-0.22/widgets/wt_label.c:51:4: warning: If memory allocation fails, then there is a possible null pointer dereference: fillup [nullPointerOutOfMemory] stfl-0.22/widgets/wt_label.c:49:27: note: Assuming allocation function fails stfl-0.22/widgets/wt_label.c:49:27: note: Assignment 'fillup=malloc(sizeof(wchar_t)*(w->w+1))', assigned value is 0 stfl-0.22/widgets/wt_label.c:51:4: note: Null pointer dereference stfl-0.22/widgets/wt_label.c:53:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fillup [nullPointerOutOfMemory] stfl-0.22/widgets/wt_label.c:49:27: note: Assuming allocation function fails stfl-0.22/widgets/wt_label.c:49:27: note: Assignment 'fillup=malloc(sizeof(wchar_t)*(w->w+1))', assigned value is 0 stfl-0.22/widgets/wt_label.c:53:3: note: Null pointer dereference stfl-0.22/widgets/wt_label.c:54:49: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fillup [nullPointerOutOfMemory] stfl-0.22/widgets/wt_label.c:49:27: note: Assuming allocation function fails stfl-0.22/widgets/wt_label.c:49:27: note: Assignment 'fillup=malloc(sizeof(wchar_t)*(w->w+1))', assigned value is 0 stfl-0.22/widgets/wt_label.c:54:49: note: Null pointer dereference stfl-0.22/widgets/wt_label.c:54:63: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fillup [nullPointerOutOfMemory] stfl-0.22/widgets/wt_label.c:49:27: note: Assuming allocation function fails stfl-0.22/widgets/wt_label.c:49:27: note: Assignment 'fillup=malloc(sizeof(wchar_t)*(w->w+1))', assigned value is 0 stfl-0.22/widgets/wt_label.c:54:63: note: Null pointer dereference stfl-0.22/base.c:67:2: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] stfl-0.22/base.c:66:32: note: Assuming allocation function fails stfl-0.22/base.c:66:32: note: Assignment 'w=calloc(1,sizeof(struct stfl_widget))', assigned value is 0 stfl-0.22/base.c:67:2: note: Null pointer dereference stfl-0.22/base.c:68:2: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] stfl-0.22/base.c:66:32: note: Assuming allocation function fails stfl-0.22/base.c:66:32: note: Assignment 'w=calloc(1,sizeof(struct stfl_widget))', assigned value is 0 stfl-0.22/base.c:68:2: note: Null pointer dereference stfl-0.22/base.c:69:2: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] stfl-0.22/base.c:66:32: note: Assuming allocation function fails stfl-0.22/base.c:66:32: note: Assignment 'w=calloc(1,sizeof(struct stfl_widget))', assigned value is 0 stfl-0.22/base.c:69:2: note: Null pointer dereference stfl-0.22/base.c:70:6: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] stfl-0.22/base.c:66:32: note: Assuming allocation function fails stfl-0.22/base.c:66:32: note: Assignment 'w=calloc(1,sizeof(struct stfl_widget))', assigned value is 0 stfl-0.22/base.c:70:6: note: Null pointer dereference stfl-0.22/base.c:141:2: warning: If memory allocation fails, then there is a possible null pointer dereference: kv [nullPointerOutOfMemory] stfl-0.22/base.c:140:13: note: Assuming allocation function fails stfl-0.22/base.c:140:13: note: Assignment 'kv=calloc(1,sizeof(struct stfl_kv))', assigned value is 0 stfl-0.22/base.c:141:2: note: Null pointer dereference stfl-0.22/base.c:142:2: warning: If memory allocation fails, then there is a possible null pointer dereference: kv [nullPointerOutOfMemory] stfl-0.22/base.c:140:13: note: Assuming allocation function fails stfl-0.22/base.c:140:13: note: Assignment 'kv=calloc(1,sizeof(struct stfl_kv))', assigned value is 0 stfl-0.22/base.c:142:2: note: Null pointer dereference stfl-0.22/base.c:143:2: warning: If memory allocation fails, then there is a possible null pointer dereference: kv [nullPointerOutOfMemory] stfl-0.22/base.c:140:13: note: Assuming allocation function fails stfl-0.22/base.c:140:13: note: Assignment 'kv=calloc(1,sizeof(struct stfl_kv))', assigned value is 0 stfl-0.22/base.c:143:2: note: Null pointer dereference stfl-0.22/base.c:144:2: warning: If memory allocation fails, then there is a possible null pointer dereference: kv [nullPointerOutOfMemory] stfl-0.22/base.c:140:13: note: Assuming allocation function fails stfl-0.22/base.c:140:13: note: Assignment 'kv=calloc(1,sizeof(struct stfl_kv))', assigned value is 0 stfl-0.22/base.c:144:2: note: Null pointer dereference stfl-0.22/base.c:145:2: warning: If memory allocation fails, then there is a possible null pointer dereference: kv [nullPointerOutOfMemory] stfl-0.22/base.c:140:13: note: Assuming allocation function fails stfl-0.22/base.c:140:13: note: Assignment 'kv=calloc(1,sizeof(struct stfl_kv))', assigned value is 0 stfl-0.22/base.c:145:2: note: Null pointer dereference stfl-0.22/base.c:173:24: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] stfl-0.22/base.c:548:21: note: Assuming allocation function fails stfl-0.22/base.c:548:21: note: Assignment 'on_handler=malloc(on_handler_len*sizeof(wchar_t))', assigned value is 0 stfl-0.22/base.c:553:51: note: Calling function 'stfl_widget_getkv_str', 2nd argument 'on_handler' value is 0 stfl-0.22/base.c:235:44: note: Calling function 'stfl_widget_getkv', 2nd argument 'key' value is 0 stfl-0.22/base.c:182:51: note: Calling function 'stfl_widget_getkv_worker', 2nd argument 'key' value is 0 stfl-0.22/base.c:173:24: note: Null pointer dereference stfl-0.22/base.c:185:24: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] stfl-0.22/base.c:548:21: note: Assuming allocation function fails stfl-0.22/base.c:548:21: note: Assignment 'on_handler=malloc(on_handler_len*sizeof(wchar_t))', assigned value is 0 stfl-0.22/base.c:553:51: note: Calling function 'stfl_widget_getkv_str', 2nd argument 'on_handler' value is 0 stfl-0.22/base.c:235:44: note: Calling function 'stfl_widget_getkv', 2nd argument 'key' value is 0 stfl-0.22/base.c:183:6: note: Assuming condition is false stfl-0.22/base.c:185:24: note: Null pointer dereference stfl-0.22/base.c:439:2: warning: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] stfl-0.22/base.c:438:31: note: Assuming allocation function fails stfl-0.22/base.c:438:31: note: Assignment 'e=calloc(1,sizeof(struct stfl_event))', assigned value is 0 stfl-0.22/base.c:439:2: note: Null pointer dereference stfl-0.22/base.c:670:160: style:inconclusive: Function 'stfl_print_richtext' argument 7 names different: declaration 'style' definition 'style_normal'. [funcArgNamesDifferent] stfl-0.22/stfl_internals.h:150:167: note: Function 'stfl_print_richtext' argument 7 names different: declaration 'style' definition 'style_normal'. stfl-0.22/base.c:670:160: note: Function 'stfl_print_richtext' argument 7 names different: declaration 'style' definition 'style_normal'. stfl-0.22/base.c:221:18: style: Variable 'kv' can be declared as pointer to const [constVariablePointer] stfl-0.22/base.c:241:18: style: Variable 'kv' can be declared as pointer to const [constVariablePointer] stfl-0.22/base.c:327:62: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] stfl-0.22/widgets/wt_list.c:131:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fillup [nullPointerOutOfMemory] stfl-0.22/widgets/wt_list.c:129:28: note: Assuming allocation function fails stfl-0.22/widgets/wt_list.c:129:28: note: Assignment 'fillup=malloc(sizeof(wchar_t)*(w->w+1))', assigned value is 0 stfl-0.22/widgets/wt_list.c:131:5: note: Null pointer dereference stfl-0.22/widgets/wt_list.c:133:4: warning: If memory allocation fails, then there is a possible null pointer dereference: fillup [nullPointerOutOfMemory] stfl-0.22/widgets/wt_list.c:129:28: note: Assuming allocation function fails stfl-0.22/widgets/wt_list.c:129:28: note: Assignment 'fillup=malloc(sizeof(wchar_t)*(w->w+1))', assigned value is 0 stfl-0.22/widgets/wt_list.c:133:4: note: Null pointer dereference stfl-0.22/widgets/wt_list.c:134:59: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fillup [nullPointerOutOfMemory] stfl-0.22/widgets/wt_list.c:129:28: note: Assuming allocation function fails stfl-0.22/widgets/wt_list.c:129:28: note: Assignment 'fillup=malloc(sizeof(wchar_t)*(w->w+1))', assigned value is 0 stfl-0.22/widgets/wt_list.c:134:59: note: Null pointer dereference stfl-0.22/widgets/wt_list.c:134:73: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fillup [nullPointerOutOfMemory] stfl-0.22/widgets/wt_list.c:129:28: note: Assuming allocation function fails stfl-0.22/widgets/wt_list.c:129:28: note: Assignment 'fillup=malloc(sizeof(wchar_t)*(w->w+1))', assigned value is 0 stfl-0.22/widgets/wt_list.c:134:73: note: Null pointer dereference stfl-0.22/widgets/wt_list.c:44:22: style: Variable 'c' can be declared as pointer to const [constVariablePointer] stfl-0.22/widgets/wt_list.c:158:22: style: Variable 'c' can be declared as pointer to const [constVariablePointer] stfl-0.22/widgets/wt_list.c:229:53: style: Parameter 'w' can be declared as pointer to const. However it seems that 'wt_listitem_prepare' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stfl-0.22/widgets/wt_list.c:238:2: note: You might need to cast the function pointer here stfl-0.22/widgets/wt_list.c:229:53: note: Parameter 'w' can be declared as pointer to const stfl-0.22/widgets/wt_list.c:229:74: style: Parameter 'f' can be declared as pointer to const. However it seems that 'wt_listitem_prepare' is a callback function, if 'f' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stfl-0.22/widgets/wt_list.c:238:2: note: You might need to cast the function pointer here stfl-0.22/widgets/wt_list.c:229:74: note: Parameter 'f' can be declared as pointer to const stfl-0.22/widgets/wt_list.c:230:50: style: Parameter 'w' can be declared as pointer to const. However it seems that 'wt_listitem_draw' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stfl-0.22/widgets/wt_list.c:239:2: note: You might need to cast the function pointer here stfl-0.22/widgets/wt_list.c:230:50: note: Parameter 'w' can be declared as pointer to const stfl-0.22/widgets/wt_list.c:230:71: style: Parameter 'f' can be declared as pointer to const. However it seems that 'wt_listitem_draw' is a callback function, if 'f' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stfl-0.22/widgets/wt_list.c:239:2: note: You might need to cast the function pointer here stfl-0.22/widgets/wt_list.c:230:71: note: Parameter 'f' can be declared as pointer to const stfl-0.22/widgets/wt_list.c:230:82: style: Parameter 'win' can be declared as pointer to const. However it seems that 'wt_listitem_draw' is a callback function, if 'win' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stfl-0.22/widgets/wt_list.c:239:2: note: You might need to cast the function pointer here stfl-0.22/widgets/wt_list.c:230:82: note: Parameter 'win' can be declared as pointer to const stfl-0.22/parser.c:108:16: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] stfl-0.22/parser.c:132:18: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] stfl-0.22/parser.c:476:3: error: Common realloc mistake: 'text' nulled but not freed upon failure [memleakOnRealloc] stfl-0.22/parser.c:262:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: text [nullPointerOutOfMemory] stfl-0.22/parser.c:487:26: note: Assuming allocation function fails stfl-0.22/parser.c:487:26: note: Assignment 'wtext=malloc(sizeof(wchar_t)*wtextsize)', assigned value is 0 stfl-0.22/parser.c:499:38: note: Calling function 'stfl_parser', 1st argument 'wtext' value is 0 stfl-0.22/parser.c:262:9: note: Null pointer dereference stfl-0.22/parser.c:486:59: error: Null pointer dereference [nullPointer] stfl-0.22/widgets/wt_table.c:124:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mastercell [valueFlowBailoutIncompleteVar] stfl-0.22/widgets/wt_table.c:362:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACS_VLINE [valueFlowBailoutIncompleteVar] stfl-0.22/widgets/wt_table.c:450:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable spanpadding [valueFlowBailoutIncompleteVar] stfl-0.22/widgets/wt_table.c:596:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_LEFT [valueFlowBailoutIncompleteVar] stfl-0.22/widgets/wt_table.c:551:13: style: Condition 'left_m' is always false [knownConditionTrueFalse] stfl-0.22/widgets/wt_table.c:550:21: note: Assuming that condition 'j==0' is not redundant stfl-0.22/widgets/wt_table.c:543:36: note: left_m is assigned 'i>0?d->map[i-1][j]:0' here. stfl-0.22/widgets/wt_table.c:551:13: note: Condition 'left_m' is always false stfl-0.22/widgets/wt_table.c:553:11: style: Condition 'up_m' is always false [knownConditionTrueFalse] stfl-0.22/widgets/wt_table.c:550:21: note: Assuming that condition 'j==0' is not redundant stfl-0.22/widgets/wt_table.c:546:34: note: up_m is assigned 'j>0?d->map[i][j-1]:0' here. stfl-0.22/widgets/wt_table.c:553:11: note: Condition 'up_m' is always false stfl-0.22/widgets/wt_table.c:555:43: style: Condition 'left>1' is always false [knownConditionTrueFalse] stfl-0.22/widgets/wt_table.c:551:20: note: Assignment 'left=left_m?left_m->border_t:0', assigned value is 0 stfl-0.22/widgets/wt_table.c:555:43: note: Condition 'left>1' is always false stfl-0.22/widgets/wt_table.c:555:58: style: Condition 'up>1' is always false [knownConditionTrueFalse] stfl-0.22/widgets/wt_table.c:553:16: note: Assignment 'up=up_m?up_m->border_l:0', assigned value is 0 stfl-0.22/widgets/wt_table.c:555:58: note: Condition 'up>1' is always false stfl-0.22/widgets/wt_table.c:88:2: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] stfl-0.22/widgets/wt_table.c:82:31: note: Assuming allocation function fails stfl-0.22/widgets/wt_table.c:82:31: note: Assignment 'd=calloc(1,sizeof(struct table_data))', assigned value is 0 stfl-0.22/widgets/wt_table.c:88:2: note: Null pointer dereference stfl-0.22/widgets/wt_table.c:507:29: style: Variable 'm' can be declared as pointer to const [constVariablePointer] stfl-0.22/widgets/wt_table.c:592:26: style: Variable 'c' can be declared as pointer to const [constVariablePointer] stfl-0.22/widgets/wt_table.c:676:52: style: Parameter 'w' can be declared as pointer to const. However it seems that 'wt_tablebr_prepare' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stfl-0.22/widgets/wt_table.c:685:2: note: You might need to cast the function pointer here stfl-0.22/widgets/wt_table.c:676:52: note: Parameter 'w' can be declared as pointer to const stfl-0.22/widgets/wt_table.c:676:73: style: Parameter 'f' can be declared as pointer to const. However it seems that 'wt_tablebr_prepare' is a callback function, if 'f' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stfl-0.22/widgets/wt_table.c:685:2: note: You might need to cast the function pointer here stfl-0.22/widgets/wt_table.c:676:73: note: Parameter 'f' can be declared as pointer to const stfl-0.22/widgets/wt_table.c:677:49: style: Parameter 'w' can be declared as pointer to const. However it seems that 'wt_tablebr_draw' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stfl-0.22/widgets/wt_table.c:686:2: note: You might need to cast the function pointer here stfl-0.22/widgets/wt_table.c:677:49: note: Parameter 'w' can be declared as pointer to const stfl-0.22/widgets/wt_table.c:677:70: style: Parameter 'f' can be declared as pointer to const. However it seems that 'wt_tablebr_draw' is a callback function, if 'f' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stfl-0.22/widgets/wt_table.c:686:2: note: You might need to cast the function pointer here stfl-0.22/widgets/wt_table.c:677:70: note: Parameter 'f' can be declared as pointer to const stfl-0.22/widgets/wt_table.c:677:81: style: Parameter 'win' can be declared as pointer to const. However it seems that 'wt_tablebr_draw' is a callback function, if 'win' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stfl-0.22/widgets/wt_table.c:686:2: note: You might need to cast the function pointer here stfl-0.22/widgets/wt_table.c:677:81: note: Parameter 'win' can be declared as pointer to const diff: head stfl-0.22/binding.c:86:94: style: Parameter 'auto_desc' can be declared as pointer to const [constParameterPointer] DONE