2025-05-04 05:03 ftp://ftp.de.debian.org/debian/pool/main/f/f-irc/f-irc_1.36.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 -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: 88ef81e (2025-05-02 08:42:38 +0200) count: 302 299 elapsed-time: 9.0 9.4 head-timing-info: old-timing-info: head results: fi-1.36/buffer.c:52:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pbuffer [nullPointerOutOfMemory] fi-1.36/buffer.c:48:26: note: Assuming allocation function fails fi-1.36/buffer.c:48:26: note: Assignment 'pbuffer=malloc(sizeof(struct buffer))', assigned value is 0 fi-1.36/buffer.c:52:9: note: Null pointer dereference fi-1.36/buffer.c:54:2: warning: If memory allocation fails, then there is a possible null pointer dereference: pbuffer [nullPointerOutOfMemory] fi-1.36/buffer.c:48:26: note: Assuming allocation function fails fi-1.36/buffer.c:48:26: note: Assignment 'pbuffer=malloc(sizeof(struct buffer))', assigned value is 0 fi-1.36/buffer.c:54:2: note: Null pointer dereference fi-1.36/buffer.c:74:28: style:inconclusive: Function 'is_markerline' argument 1 names different: declaration 'pbuffer' definition 'pb'. [funcArgNamesDifferent] fi-1.36/buffer.h:38:28: note: Function 'is_markerline' argument 1 names different: declaration 'pbuffer' definition 'pb'. fi-1.36/buffer.c:74:28: note: Function 'is_markerline' argument 1 names different: declaration 'pbuffer' definition 'pb'. fi-1.36/buffer.c:142:22: style: Variable 'pbe' can be declared as pointer to const [constVariablePointer] fi-1.36/buffer.c:160:20: style: Variable 'el1' can be declared as pointer to const [constVariablePointer] fi-1.36/buffer.c:161:20: style: Variable 'el2' can be declared as pointer to const [constVariablePointer] fi-1.36/buffer.c:168:20: style: Variable 'el1' can be declared as pointer to const [constVariablePointer] fi-1.36/buffer.c:169:20: style: Variable 'el2' can be declared as pointer to const [constVariablePointer] fi-1.36/buffer.c:188:21: style: Variable 'pbe' can be declared as pointer to const [constVariablePointer] fi-1.36/ansi.c:41:19: warning: If memory allocation fails, then there is a possible null pointer dereference: ansi [nullPointerOutOfMemory] fi-1.36/ansi.c:40:21: note: Assuming allocation function fails fi-1.36/ansi.c:40:21: note: Assignment 'ansi=strdup(ansi_in)', assigned value is 0 fi-1.36/ansi.c:41:19: note: Null pointer dereference fi-1.36/ansi.c:131:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ansi [nullPointerOutOfMemory] fi-1.36/ansi.c:121:29: note: Assuming allocation function fails fi-1.36/ansi.c:121:15: note: Assignment 'ansi=(char*)calloc(1,len+1)', assigned value is 0 fi-1.36/ansi.c:131:4: note: Null pointer dereference fi-1.36/ansi.c:156:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] fi-1.36/ansi.c:120:28: note: Assuming allocation function fails fi-1.36/ansi.c:120:14: note: Assignment 'out=(char*)calloc(1,out_len)', assigned value is 0 fi-1.36/ansi.c:156:2: note: Null pointer dereference fi-1.36/ansi.c:46:28: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fi-1.36/ansi.c:40:21: note: Assuming allocation function fails fi-1.36/ansi.c:40:21: note: Assignment 'ansi=strdup(ansi_in)', assigned value is 0 fi-1.36/ansi.c:46:28: note: Null pointer addition fi-1.36/autocomplete.c:110:31: warning: If memory allocation fails, then there is a possible null pointer dereference: matching_str [nullPointerOutOfMemory] fi-1.36/autocomplete.c:109:26: note: Assuming allocation function fails fi-1.36/autocomplete.c:109:26: note: Assignment 'matching_str=strdup(tab_completion[index].what)', assigned value is 0 fi-1.36/autocomplete.c:110:31: note: Null pointer dereference fi-1.36/autocomplete.c:192:31: warning: If memory allocation fails, then there is a possible null pointer dereference: matching_str [nullPointerOutOfMemory] fi-1.36/autocomplete.c:191:26: note: Assuming allocation function fails fi-1.36/autocomplete.c:191:26: note: Assignment 'matching_str=strdup(compare_str)', assigned value is 0 fi-1.36/autocomplete.c:192:31: note: Null pointer dereference fi-1.36/autocomplete.c:158:10: style: Local variable 'dummy' shadows outer variable [shadowVariable] fi-1.36/autocomplete.c:140:30: note: Shadowed declaration fi-1.36/autocomplete.c:158:10: note: Shadow variable fi-1.36/autocomplete.c:137:41: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] fi-1.36/autocomplete.c:153:9: style: Variable 'compare_str' can be declared as pointer to const [constVariablePointer] fi-1.36/chistory.c:22:3: warning: If memory allocation fails, then there is a possible null pointer dereference: channel_history [nullPointerOutOfMemory] fi-1.36/chistory.c:17:26: note: Assuming allocation function fails fi-1.36/chistory.c:17:26: note: Assignment 'channel_history=calloc(sizeof(struct ch_t),max_n)', assigned value is 0 fi-1.36/chistory.c:22:3: note: Null pointer dereference fi-1.36/chistory.c:22:29: warning: If memory allocation fails, then there is a possible null pointer dereference: channel_history [nullPointerOutOfMemory] fi-1.36/chistory.c:17:26: note: Assuming allocation function fails fi-1.36/chistory.c:17:26: note: Assignment 'channel_history=calloc(sizeof(struct ch_t),max_n)', assigned value is 0 fi-1.36/chistory.c:22:29: note: Null pointer dereference fi-1.36/channels.c:306:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/channels.c:456:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/channels.c:555:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_UP [valueFlowBailoutIncompleteVar] fi-1.36/channels.c:676:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUTTON1_CLICKED [valueFlowBailoutIncompleteVar] fi-1.36/colors.c:110:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLORS [valueFlowBailoutIncompleteVar] fi-1.36/colors.c:153:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_PAIRS [valueFlowBailoutIncompleteVar] fi-1.36/colors.c:166:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_RED [valueFlowBailoutIncompleteVar] fi-1.36/colors.c:222:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLORS [valueFlowBailoutIncompleteVar] fi-1.36/colors.c:65:3: error: Common realloc mistake: 'pidc' nulled but not freed upon failure [memleakOnRealloc] fi-1.36/colors.c:94:31: style: Parameter 'e1' can be declared as pointer to const [constParameterPointer] fi-1.36/colors.c:94:42: style: Parameter 'e2' can be declared as pointer to const [constParameterPointer] fi-1.36/ctcp.c:68:34: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] fi-1.36/config.c:416:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] fi-1.36/channels.c:190:9: warning: If memory allocation fails, then there is a possible null pointer dereference: vc_list [nullPointerOutOfMemory] fi-1.36/channels.c:188:18: note: Assuming allocation function fails fi-1.36/channels.c:188:18: note: Assignment 'vc_list=malloc(sizeof(struct visible_channels))', assigned value is 0 fi-1.36/channels.c:190:9: note: Null pointer dereference fi-1.36/channels.c:293:32: style:inconclusive: Function 'show_channel_list' argument 1 names different: declaration 'win' definition 'channel_window'. [funcArgNamesDifferent] fi-1.36/channels.h:90:32: note: Function 'show_channel_list' argument 1 names different: declaration 'win' definition 'channel_window'. fi-1.36/channels.c:293:32: note: Function 'show_channel_list' argument 1 names different: declaration 'win' definition 'channel_window'. fi-1.36/channels.c:383:63: style:inconclusive: Function 'change_channel' argument 3 names different: declaration 'reset_cursor' definition 'change_cursor'. [funcArgNamesDifferent] fi-1.36/channels.h:94:63: note: Function 'change_channel' argument 3 names different: declaration 'reset_cursor' definition 'change_cursor'. fi-1.36/channels.c:383:63: note: Function 'change_channel' argument 3 names different: declaration 'reset_cursor' definition 'change_cursor'. fi-1.36/channels.c:340:12: style: Local variable 'channel_cursor' shadows outer variable [shadowVariable] fi-1.36/channels.h:12:28: note: Shadowed declaration fi-1.36/channels.c:340:12: note: Shadow variable fi-1.36/channels.c:126:11: style: Variable 'pc' can be declared as pointer to const [constVariablePointer] fi-1.36/channels.c:207:13: style: Variable 'pc' can be declared as pointer to const [constVariablePointer] fi-1.36/channels.c:317:10: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] fi-1.36/channels.c:364:11: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] fi-1.36/dcc.c:87:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] fi-1.36/dcc.c:274:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/dcc.c:324:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/dcc.c:385:108: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/dcc.c:431:166: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/dcc.c:491:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable revents [valueFlowBailoutIncompleteVar] fi-1.36/error.c:22:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/grep_filter.c:27:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOSUB [valueFlowBailoutIncompleteVar] fi-1.36/grep_filter.c:71:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/dcc.c:104:2: error: Common realloc mistake: 'dcc_list' nulled but not freed upon failure [memleakOnRealloc] fi-1.36/dcc.c:219:2: error: Common realloc mistake: 'dcc_list' nulled but not freed upon failure [memleakOnRealloc] fi-1.36/dcc.c:193:54: style:inconclusive: Function 'init_recv_dcc' argument 2 names different: declaration 'addr' definition 'addr_in'. [funcArgNamesDifferent] fi-1.36/dcc.h:27:54: note: Function 'init_recv_dcc' argument 2 names different: declaration 'addr' definition 'addr_in'. fi-1.36/dcc.c:193:54: note: Function 'init_recv_dcc' argument 2 names different: declaration 'addr' definition 'addr_in'. fi-1.36/dcc.c:193:77: style:inconclusive: Function 'init_recv_dcc' argument 4 names different: declaration 'server_index' definition 'server_nr'. [funcArgNamesDifferent] fi-1.36/dcc.h:27:74: note: Function 'init_recv_dcc' argument 4 names different: declaration 'server_index' definition 'server_nr'. fi-1.36/dcc.c:193:77: note: Function 'init_recv_dcc' argument 4 names different: declaration 'server_index' definition 'server_nr'. fi-1.36/dcc.c:193:92: style:inconclusive: Function 'init_recv_dcc' argument 5 names different: declaration 'channel_index' definition 'channel_nr'. [funcArgNamesDifferent] fi-1.36/dcc.h:27:92: note: Function 'init_recv_dcc' argument 5 names different: declaration 'channel_index' definition 'channel_nr'. fi-1.36/dcc.c:193:92: note: Function 'init_recv_dcc' argument 5 names different: declaration 'channel_index' definition 'channel_nr'. fi-1.36/dcc.c:75:28: style: Variable 'dummy' can be declared as pointer to const [constVariablePointer] fi-1.36/dcc.c:477:40: style: Parameter 'pfd' can be declared as pointer to const [constParameterPointer] fi-1.36/ignores.c:91:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] fi-1.36/help.c:183:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_LEFT [valueFlowBailoutIncompleteVar] fi-1.36/ignores.c:51:3: error: Common realloc mistake: 'ignores' nulled but not freed upon failure [memleakOnRealloc] fi-1.36/help.c:141:49: error: Null pointer dereference [nullPointer] fi-1.36/help.c:138:10: style: Variable 'pblock' can be declared as pointer to const [constVariablePointer] fi-1.36/lf_buffer.c:38:21: style: Variable 'end_in' can be declared as pointer to const [constVariablePointer] fi-1.36/loop.c:213:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] fi-1.36/loop.c:430:95: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/loop.c:610:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] fi-1.36/loop.c:876:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] fi-1.36/loop.c:996:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_STANDOUT [valueFlowBailoutIncompleteVar] fi-1.36/irc.c:313:27: style: Expression is always true because 'else if' condition is opposite to previous condition at line 283. [multiCondition] fi-1.36/irc.c:283:22: note: first condition fi-1.36/irc.c:313:27: note: else if condition is opposite to first condition fi-1.36/irc.c:171:4: error: Memory leak: prefix [memleak] fi-1.36/irc.c:55:2: error: Common realloc mistake: 'str_buffer' nulled but not freed upon failure [memleakOnRealloc] fi-1.36/irc.c:107:50: style:inconclusive: Function 'create_channel' argument 2 names different: declaration 'channel_index' definition 'channel'. [funcArgNamesDifferent] fi-1.36/irc.h:20:50: note: Function 'create_channel' argument 2 names different: declaration 'channel_index' definition 'channel'. fi-1.36/irc.c:107:50: note: Function 'create_channel' argument 2 names different: declaration 'channel_index' definition 'channel'. fi-1.36/irc.c:901:37: style:inconclusive: Function 'irc_privmsg' argument 2 names different: declaration 'channel_name' definition 'channel'. [funcArgNamesDifferent] fi-1.36/irc.h:23:37: note: Function 'irc_privmsg' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:901:37: note: Function 'irc_privmsg' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:906:34: style:inconclusive: Function 'irc_kick' argument 2 names different: declaration 'channel_name' definition 'channel'. [funcArgNamesDifferent] fi-1.36/irc.h:24:34: note: Function 'irc_kick' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:906:34: note: Function 'irc_kick' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:914:33: style:inconclusive: Function 'irc_ban' argument 2 names different: declaration 'channel_name' definition 'channel'. [funcArgNamesDifferent] fi-1.36/irc.h:25:33: note: Function 'irc_ban' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:914:33: note: Function 'irc_ban' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:924:32: style:inconclusive: Function 'irc_op' argument 2 names different: declaration 'channel_name' definition 'channel'. [funcArgNamesDifferent] fi-1.36/irc.h:26:32: note: Function 'irc_op' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:924:32: note: Function 'irc_op' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:937:40: style:inconclusive: Function 'irc_allowspeak' argument 2 names different: declaration 'channel_name' definition 'channel'. [funcArgNamesDifferent] fi-1.36/irc.h:28:40: note: Function 'irc_allowspeak' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:937:40: note: Function 'irc_allowspeak' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:955:33: style:inconclusive: Function 'irc_who' argument 2 names different: declaration 'channel_name' definition 'channel'. [funcArgNamesDifferent] fi-1.36/irc.h:29:33: note: Function 'irc_who' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:955:33: note: Function 'irc_who' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:960:35: style:inconclusive: Function 'irc_topic' argument 2 names different: declaration 'channel_name' definition 'channel'. [funcArgNamesDifferent] fi-1.36/irc.h:30:35: note: Function 'irc_topic' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:960:35: note: Function 'irc_topic' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:984:34: style:inconclusive: Function 'irc_join' argument 2 names different: declaration 'channel_name' definition 'channel'. [funcArgNamesDifferent] fi-1.36/irc.h:32:34: note: Function 'irc_join' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:984:34: note: Function 'irc_join' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:989:34: style:inconclusive: Function 'irc_part' argument 2 names different: declaration 'channel_name' definition 'channel'. [funcArgNamesDifferent] fi-1.36/irc.h:35:34: note: Function 'irc_part' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:989:34: note: Function 'irc_part' argument 2 names different: declaration 'channel_name' definition 'channel'. fi-1.36/irc.c:118:48: style: Parameter 'pc' can be declared as pointer to const [constParameterPointer] fi-1.36/irc.c:629:10: style: Variable 'nick' can be declared as pointer to const [constVariablePointer] fi-1.36/irc.c:623:17: style: Variable 'signon' is assigned a value that is never used. [unreadVariable] fi-1.36/main.c:120:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUTTON1_CLICKED [valueFlowBailoutIncompleteVar] fi-1.36/main.c:168:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar] fi-1.36/main.c:300:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] fi-1.36/main.c:525:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/main.c:639:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] fi-1.36/loop.c:417:19: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fi-1.36/loop.c:734:21: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fi-1.36/loop.c:385:16: style: Condition 'skip_n<=0' is always true [knownConditionTrueFalse] fi-1.36/loop.c:377:53: note: dummy_start is assigned 'dummy' here. fi-1.36/loop.c:384:14: note: Assignment 'skip_n=(int)(dummy-dummy_start)', assigned value is 0 fi-1.36/loop.c:385:16: note: Condition 'skip_n<=0' is always true fi-1.36/loop.c:197:10: warning: If memory allocation fails, then there is a possible null pointer dereference: pm_bitmap [nullPointerOutOfMemory] fi-1.36/loop.c:196:29: note: Assuming allocation function fails fi-1.36/loop.c:196:15: note: Assignment 'pm_bitmap=(char*)malloc(len+1)', assigned value is 0 fi-1.36/loop.c:197:10: note: Null pointer dereference fi-1.36/loop.c:198:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pm_bitmap [nullPointerOutOfMemory] fi-1.36/loop.c:196:29: note: Assuming allocation function fails fi-1.36/loop.c:196:15: note: Assignment 'pm_bitmap=(char*)malloc(len+1)', assigned value is 0 fi-1.36/loop.c:198:3: note: Null pointer dereference fi-1.36/loop.c:487:43: warning: If memory allocation fails, then there is a possible null pointer dereference: nick_only [nullPointerOutOfMemory] fi-1.36/loop.c:484:28: note: Assuming allocation function fails fi-1.36/loop.c:484:28: note: Assignment 'nick_only=strdup(user)', assigned value is 0 fi-1.36/loop.c:487:43: note: Null pointer dereference fi-1.36/loop.c:528:104: warning: If memory allocation fails, then there is a possible null pointer dereference: time_str2 [nullPointerOutOfMemory] fi-1.36/loop.c:524:23: note: Assuming allocation function fails fi-1.36/loop.c:524:23: note: Assignment 'time_str2=strdup("?")', assigned value is 0 fi-1.36/loop.c:528:104: note: Null pointer dereference fi-1.36/loop.c:760:23: warning: If memory allocation fails, then there is a possible null pointer dereference: cur_topic [nullPointerOutOfMemory] fi-1.36/loop.c:759:27: note: Assuming allocation function fails fi-1.36/loop.c:759:27: note: Assignment 'cur_topic=strdup(str_or_nothing(pch->topic))', assigned value is 0 fi-1.36/loop.c:760:23: note: Null pointer dereference fi-1.36/loop.c:380:33: error: Null pointer dereference [nullPointer] fi-1.36/loop.c:384:26: style: Same expression on both sides of '-' because 'dummy' and 'dummy_start' represent the same value. [duplicateExpression] fi-1.36/loop.c:377:55: note: 'dummy_start' is assigned value 'dummy' here. fi-1.36/loop.c:384:26: note: Same expression on both sides of '-' because 'dummy' and 'dummy_start' represent the same value. fi-1.36/loop.c:368:15: style: Variable 'last_pair' is reassigned a value before the old one has been used. [redundantAssignment] fi-1.36/loop.c:350:16: note: last_pair is assigned fi-1.36/loop.c:368:15: note: last_pair is overwritten fi-1.36/loop.c:184:48: style:inconclusive: Function 'output_to_window' argument 2 names different: declaration 'string' definition 'string_in'. [funcArgNamesDifferent] fi-1.36/loop.h:20:48: note: Function 'output_to_window' argument 2 names different: declaration 'string' definition 'string_in'. fi-1.36/loop.c:184:48: note: Function 'output_to_window' argument 2 names different: declaration 'string' definition 'string_in'. fi-1.36/loop.c:412:21: style:inconclusive: Function 'log_channel' argument 1 names different: declaration 'server_nr' definition 'iserver'. [funcArgNamesDifferent] fi-1.36/loop.h:21:21: note: Function 'log_channel' argument 1 names different: declaration 'server_nr' definition 'iserver'. fi-1.36/loop.c:412:21: note: Function 'log_channel' argument 1 names different: declaration 'server_nr' definition 'iserver'. fi-1.36/loop.c:412:89: style:inconclusive: Function 'log_channel' argument 5 names different: declaration 'gen_hl' definition 'meta_hl'. [funcArgNamesDifferent] fi-1.36/loop.h:21:91: note: Function 'log_channel' argument 5 names different: declaration 'gen_hl' definition 'meta_hl'. fi-1.36/loop.c:412:89: note: Function 'log_channel' argument 5 names different: declaration 'gen_hl' definition 'meta_hl'. fi-1.36/loop.c:584:28: style:inconclusive: Function 'update_statusline' argument 1 names different: declaration 'server_nr' definition 'serv'. [funcArgNamesDifferent] fi-1.36/loop.h:22:28: note: Function 'update_statusline' argument 1 names different: declaration 'server_nr' definition 'serv'. fi-1.36/loop.c:584:28: note: Function 'update_statusline' argument 1 names different: declaration 'server_nr' definition 'serv'. fi-1.36/loop.c:584:38: style:inconclusive: Function 'update_statusline' argument 2 names different: declaration 'channel_nr' definition 'chan'. [funcArgNamesDifferent] fi-1.36/loop.h:22:43: note: Function 'update_statusline' argument 2 names different: declaration 'channel_nr' definition 'chan'. fi-1.36/loop.c:584:38: note: Function 'update_statusline' argument 2 names different: declaration 'channel_nr' definition 'chan'. fi-1.36/loop.c:584:56: style:inconclusive: Function 'update_statusline' argument 3 names different: declaration 'format' definition 'fmt'. [funcArgNamesDifferent] fi-1.36/loop.h:22:67: note: Function 'update_statusline' argument 3 names different: declaration 'format' definition 'fmt'. fi-1.36/loop.c:584:56: note: Function 'update_statusline' argument 3 names different: declaration 'format' definition 'fmt'. fi-1.36/loop.c:967:32: style:inconclusive: Function 'update_channel_border' argument 1 names different: declaration 'server_nr' definition 'server_index'. [funcArgNamesDifferent] fi-1.36/loop.h:25:32: note: Function 'update_channel_border' argument 1 names different: declaration 'server_nr' definition 'server_index'. fi-1.36/loop.c:967:32: note: Function 'update_channel_border' argument 1 names different: declaration 'server_nr' definition 'server_index'. fi-1.36/loop.c:103:11: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] fi-1.36/loop.c:184:120: style: Parameter 'pncs' can be declared as pointer to const [constParameterPointer] fi-1.36/loop.c:1050:12: style: Variable 'pc' can be declared as pointer to const [constVariablePointer] fi-1.36/loop.c:192:11: style: Variable 'loop' is assigned a value that is never used. [unreadVariable] fi-1.36/loop.c:735:12: style: Variable 'prev_ts' is assigned a value that is never used. [unreadVariable] fi-1.36/loop.c:864:11: style: Variable 'n_fd' is assigned a value that is never used. [unreadVariable] fi-1.36/loop.c:868:14: style: Variable 'pollrc' is assigned a value that is never used. [unreadVariable] fi-1.36/names.c:331:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/names.c:369:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_UP [valueFlowBailoutIncompleteVar] fi-1.36/names.c:342:6: warning: If memory allocation fails, then there is a possible null pointer dereference: nick [nullPointerOutOfMemory] fi-1.36/names.c:489:28: note: Assuming allocation function fails fi-1.36/names.c:489:28: note: Assignment 'search_nick=strdup(has_nick_mode(nick)?nick+1:nick)', assigned value is 0 fi-1.36/names.c:494:22: note: Calling function 'search_for_nick', 2nd argument 'search_nick' value is 0 fi-1.36/names.c:113:42: note: Calling function 'has_nick_mode', 1st argument 'nick' value is 0 fi-1.36/names.c:342:6: note: Null pointer dereference fi-1.36/names.c:345:6: warning: If memory allocation fails, then there is a possible null pointer dereference: nick [nullPointerOutOfMemory] fi-1.36/names.c:489:28: note: Assuming allocation function fails fi-1.36/names.c:489:28: note: Assignment 'search_nick=strdup(has_nick_mode(nick)?nick+1:nick)', assigned value is 0 fi-1.36/names.c:494:22: note: Calling function 'search_for_nick', 2nd argument 'search_nick' value is 0 fi-1.36/names.c:113:42: note: Calling function 'has_nick_mode', 1st argument 'nick' value is 0 fi-1.36/names.c:342:14: note: Assuming condition is false fi-1.36/names.c:345:6: note: Null pointer dereference fi-1.36/names.c:113:55: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fi-1.36/names.c:489:28: note: Assuming allocation function fails fi-1.36/names.c:489:28: note: Assignment 'search_nick=strdup(has_nick_mode(nick)?nick+1:nick)', assigned value is 0 fi-1.36/names.c:494:22: note: Calling function 'search_for_nick', 2nd argument 'search_nick' value is 0 fi-1.36/names.c:113:55: note: Null pointer addition fi-1.36/names.c:47:67: style:inconclusive: Function 'change_nick' argument 3 names different: declaration 'nick' definition 'old_nick'. [funcArgNamesDifferent] fi-1.36/names.h:12:67: note: Function 'change_nick' argument 3 names different: declaration 'nick' definition 'old_nick'. fi-1.36/names.c:47:67: note: Function 'change_nick' argument 3 names different: declaration 'nick' definition 'old_nick'. fi-1.36/names.c:150:11: style: Local variable 'cur_channel' shadows outer function [shadowFunction] fi-1.36/main.h:20:10: note: Shadowed declaration fi-1.36/names.c:150:11: note: Shadow variable fi-1.36/names.c:188:11: style: Local variable 'cur_channel' shadows outer function [shadowFunction] fi-1.36/main.h:20:10: note: Shadowed declaration fi-1.36/names.c:188:11: note: Shadow variable fi-1.36/names.c:199:11: style: Local variable 'cur_channel' shadows outer function [shadowFunction] fi-1.36/main.h:20:10: note: Shadowed declaration fi-1.36/names.c:199:11: note: Shadow variable fi-1.36/names.c:238:12: style: Local variable 'cur_channel' shadows outer function [shadowFunction] fi-1.36/main.h:20:10: note: Shadowed declaration fi-1.36/names.c:238:12: note: Shadow variable fi-1.36/names.c:266:11: style: Local variable 'cur_channel' shadows outer function [shadowFunction] fi-1.36/main.h:20:10: note: Shadowed declaration fi-1.36/names.c:266:11: note: Shadow variable fi-1.36/names.c:280:11: style: Local variable 'cur_channel' shadows outer function [shadowFunction] fi-1.36/main.h:20:10: note: Shadowed declaration fi-1.36/names.c:280:11: note: Shadow variable fi-1.36/names.c:321:12: style: Local variable 'cur_channel' shadows outer function [shadowFunction] fi-1.36/main.h:20:10: note: Shadowed declaration fi-1.36/names.c:321:12: note: Shadow variable fi-1.36/names.c:110:31: style: Parameter 'cur_channel' can be declared as pointer to const [constParameterPointer] fi-1.36/names.c:220:10: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] fi-1.36/names.c:229:10: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] fi-1.36/names.c:255:10: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] fi-1.36/nickcolor.c:64:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_PAIRS [valueFlowBailoutIncompleteVar] fi-1.36/scrollback.c:148:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/scrollback.c:344:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_LEFT [valueFlowBailoutIncompleteVar] fi-1.36/scrollback.c:471:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/scrollback.c:199:55: style:inconclusive: Function 'global_search' argument 2 names different: declaration 'title_in' definition 'search_what'. [funcArgNamesDifferent] fi-1.36/scrollback.h:10:55: note: Function 'global_search' argument 2 names different: declaration 'title_in' definition 'search_what'. fi-1.36/scrollback.c:199:55: note: Function 'global_search' argument 2 names different: declaration 'title_in' definition 'search_what'. fi-1.36/scrollback.c:449:71: style:inconclusive: Function 'scrollback_and_select' argument 3 names different: declaration 'value' definition 'sel_str'. [funcArgNamesDifferent] fi-1.36/scrollback.h:13:71: note: Function 'scrollback_and_select' argument 3 names different: declaration 'value' definition 'sel_str'. fi-1.36/scrollback.c:449:71: note: Function 'scrollback_and_select' argument 3 names different: declaration 'value' definition 'sel_str'. fi-1.36/scrollback.c:350:26: style: Local variable 'win' shadows outer argument [shadowArgument] fi-1.36/scrollback.c:290:25: note: Shadowed declaration fi-1.36/scrollback.c:350:26: note: Shadow variable fi-1.36/scrollback.c:660:7: style: Local variable 'sr' shadows outer variable [shadowVariable] fi-1.36/scrollback.c:651:6: note: Shadowed declaration fi-1.36/scrollback.c:660:7: note: Shadow variable fi-1.36/scrollback.c:665:8: style: Local variable 'ch' shadows outer variable [shadowVariable] fi-1.36/scrollback.c:651:15: note: Shadowed declaration fi-1.36/scrollback.c:665:8: note: Shadow variable fi-1.36/scrollback.c:83:13: style: Variable 'pc' can be declared as pointer to const [constVariablePointer] fi-1.36/scrollback.c:107:38: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] fi-1.36/scrollback.c:267:40: style: Parameter 'pbe' can be declared as pointer to const [constParameterPointer] fi-1.36/scrollback.c:503:23: style: Variable 'pbe' can be declared as pointer to const [constVariablePointer] fi-1.36/scrollback.c:664:12: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] fi-1.36/scrollback.c:205:15: style: Variable 'c' is assigned a value that is never used. [unreadVariable] fi-1.36/config.c:153:2: error: Common realloc mistake: 'favorite_channels' nulled but not freed upon failure [memleakOnRealloc] fi-1.36/config.c:643:14: warning: If memory allocation fails, then there is a possible null pointer dereference: theme_path [nullPointerOutOfMemory] fi-1.36/config.c:641:30: note: Assuming allocation function fails fi-1.36/config.c:641:30: note: Assignment 'theme_path=malloc(len*sizeof(char))', assigned value is 0 fi-1.36/config.c:643:14: note: Null pointer dereference fi-1.36/config.c:677:14: warning: If memory allocation fails, then there is a possible null pointer dereference: ignore_file [nullPointerOutOfMemory] fi-1.36/config.c:674:31: note: Assuming allocation function fails fi-1.36/config.c:674:31: note: Assignment 'ignore_file=malloc(len*sizeof(char))', assigned value is 0 fi-1.36/config.c:677:14: note: Null pointer dereference fi-1.36/config.c:789:23: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] fi-1.36/config.c:788:21: note: Assuming allocation function fails fi-1.36/config.c:788:21: note: Assignment 'temp=strdup(par)', assigned value is 0 fi-1.36/config.c:789:23: note: Null pointer dereference fi-1.36/config.c:456:12: warning: Either the condition '!is' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fi-1.36/config.c:452:7: note: Assuming that condition '!is' is not redundant fi-1.36/config.c:456:12: note: Null pointer addition fi-1.36/config.c:273:17: style: Local variable 'cur_channel' shadows outer function [shadowFunction] fi-1.36/main.h:20:10: note: Shadowed declaration fi-1.36/config.c:273:17: note: Shadow variable fi-1.36/config.c:674:11: style: Local variable 'ignore_file' shadows outer variable [shadowVariable] fi-1.36/ignores.h:15:14: note: Shadowed declaration fi-1.36/config.c:674:11: note: Shadow variable fi-1.36/config.c:297:13: style: Variable 'pf' can be declared as pointer to const [constVariablePointer] fi-1.36/servers.c:332:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLOUT [valueFlowBailoutIncompleteVar] fi-1.36/servers.c:593:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/servers.c:621:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLHUP [valueFlowBailoutIncompleteVar] fi-1.36/soundex.c:21:9: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] fi-1.36/soundex.c:19:38: note: Assuming allocation function fails fi-1.36/soundex.c:19:24: note: Assignment 'out=(char*)malloc(5)', assigned value is 0 fi-1.36/soundex.c:21:9: note: Null pointer dereference fi-1.36/soundex.c:23:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] fi-1.36/soundex.c:19:38: note: Assuming allocation function fails fi-1.36/soundex.c:19:24: note: Assignment 'out=(char*)malloc(5)', assigned value is 0 fi-1.36/soundex.c:23:2: note: Null pointer dereference fi-1.36/soundex.c:24:13: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] fi-1.36/soundex.c:19:38: note: Assuming allocation function fails fi-1.36/soundex.c:19:24: note: Assignment 'out=(char*)malloc(5)', assigned value is 0 fi-1.36/soundex.c:24:13: note: Null pointer dereference fi-1.36/soundex.c:72:16: warning: If memory allocation fails, then there is a possible null pointer dereference: haystack [nullPointerOutOfMemory] fi-1.36/soundex.c:63:25: note: Assuming allocation function fails fi-1.36/soundex.c:63:25: note: Assignment 'haystack=strdup(haystackIn)', assigned value is 0 fi-1.36/soundex.c:72:16: note: Null pointer dereference fi-1.36/string_array.c:112:23: warning: If memory allocation fails, then there is a possible null pointer dereference: pc [nullPointerOutOfMemory] fi-1.36/string_array.c:107:21: note: Assuming allocation function fails fi-1.36/string_array.c:107:21: note: Assignment 'copy=strdup(in)', assigned value is 0 fi-1.36/string_array.c:107:33: note: Assignment 'pc=copy', assigned value is 0 fi-1.36/string_array.c:112:23: note: Null pointer dereference fi-1.36/string_array.c:134:43: style:inconclusive: Function 'free_splitted_string' argument 1 names different: declaration 'prats' definition 'parts'. [funcArgNamesDifferent] fi-1.36/string_array.h:31:43: note: Function 'free_splitted_string' argument 1 names different: declaration 'prats' definition 'parts'. fi-1.36/string_array.c:134:43: note: Function 'free_splitted_string' argument 1 names different: declaration 'prats' definition 'parts'. fi-1.36/string_array.c:158:47: style: Local variable 'cmp' shadows outer function [shadowFunction] fi-1.36/string_array.c:139:12: note: Shadowed declaration fi-1.36/string_array.c:158:47: note: Shadow variable fi-1.36/servers.c:421:44: style: Condition 'rc==0' is always true [knownConditionTrueFalse] fi-1.36/servers.c:413:13: note: Assignment 'rc=0', assigned value is 0 fi-1.36/servers.c:421:44: note: Condition 'rc==0' is always true fi-1.36/servers.c:142:2: error: Common realloc mistake: 'server_list' nulled but not freed upon failure [memleakOnRealloc] fi-1.36/servers.c:139:23: warning: If memory allocation fails, then there is a possible null pointer dereference: host_and_port [nullPointerOutOfMemory] fi-1.36/servers.c:138:30: note: Assuming allocation function fails fi-1.36/servers.c:138:30: note: Assignment 'host_and_port=strdup(host_and_port_in)', assigned value is 0 fi-1.36/servers.c:139:23: note: Null pointer dereference fi-1.36/servers.c:64:42: style:inconclusive: Function 'close_server' argument 2 names different: declaration 'leave_channels' definition 'leave_channel'. [funcArgNamesDifferent] fi-1.36/servers.h:90:42: note: Function 'close_server' argument 2 names different: declaration 'leave_channels' definition 'leave_channel'. fi-1.36/servers.c:64:42: note: Function 'close_server' argument 2 names different: declaration 'leave_channels' definition 'leave_channel'. fi-1.36/servers.c:136:28: style:inconclusive: Function 'add_server' argument 1 names different: declaration 'host_and_port' definition 'host_and_port_in'. [funcArgNamesDifferent] fi-1.36/servers.h:89:28: note: Function 'add_server' argument 1 names different: declaration 'host_and_port' definition 'host_and_port_in'. fi-1.36/servers.c:136:28: note: Function 'add_server' argument 1 names different: declaration 'host_and_port' definition 'host_and_port_in'. fi-1.36/servers.c:674:23: style:inconclusive: Function 'add_autojoin' argument 1 names different: declaration 'server_index' definition 'sr'. [funcArgNamesDifferent] fi-1.36/servers.h:101:23: note: Function 'add_autojoin' argument 1 names different: declaration 'server_index' definition 'sr'. fi-1.36/servers.c:674:23: note: Function 'add_autojoin' argument 1 names different: declaration 'server_index' definition 'sr'. fi-1.36/servers.c:95:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] fi-1.36/servers.c:117:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] fi-1.36/servers.c:610:18: style: Variable 'cpfd' can be declared as pointer to const [constVariablePointer] fi-1.36/servers.c:674:33: style: Parameter 'channel_name' can be declared as pointer to const [constParameterPointer] fi-1.36/servers.c:693:19: style: Variable 'pa' can be declared as pointer to const [constVariablePointer] fi-1.36/servers.c:694:19: style: Variable 'pb' can be declared as pointer to const [constVariablePointer] fi-1.36/servers.c:720:11: style: Variable 'pa' can be declared as pointer to const [constVariablePointer] fi-1.36/servers.c:721:11: style: Variable 'pb' can be declared as pointer to const [constVariablePointer] fi-1.36/servers.c:116:10: style: Variable 'ci' is assigned a value that is never used. [unreadVariable] fi-1.36/tcp.c:42:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/tcp.c:61:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/tcp.c:84:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/tcp.c:135:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] fi-1.36/tcp.c:181:96: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_NUMERICHOST [valueFlowBailoutIncompleteVar] fi-1.36/tcp.c:194:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/tcp.c:247:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINPROGRESS [valueFlowBailoutIncompleteVar] fi-1.36/tcp.c:154:3: error: Common realloc mistake: 'alist' nulled but not freed upon failure [memleakOnRealloc] fi-1.36/tcp.c:92:24: style: Variable 's' can be declared as pointer to const [constVariablePointer] fi-1.36/tcp.c:100:25: style: Variable 's' can be declared as pointer to const [constVariablePointer] fi-1.36/tcp.c:179:19: style: Variable 'rp' can be declared as pointer to const [constVariablePointer] fi-1.36/tcp.c:26:23: style: Variable 'interval' is assigned a value that is never used. [unreadVariable] fi-1.36/tcp.c:26:14: style: Variable 'interval' is assigned a value that is never used. [unreadVariable] fi-1.36/term.c:91:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] fi-1.36/term.c:181:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/term.c:224:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/term.c:261:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] fi-1.36/term.c:292:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/term.c:319:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_GREEN [valueFlowBailoutIncompleteVar] fi-1.36/term.c:331:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUTTON1_CLICKED [valueFlowBailoutIncompleteVar] fi-1.36/term.c:339:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] fi-1.36/term.c:360:96: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_UNDERLINE [valueFlowBailoutIncompleteVar] fi-1.36/term.c:368:96: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_UNDERLINE [valueFlowBailoutIncompleteVar] fi-1.36/term.c:376:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_NORMAL [valueFlowBailoutIncompleteVar] fi-1.36/term.c:388:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] fi-1.36/term.c:400:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/term.c:140:9: warning: If memory allocation fails, then there is a possible null pointer dereference: newwin [nullPointerOutOfMemory] fi-1.36/term.c:137:32: note: Assuming allocation function fails fi-1.36/term.c:137:32: note: Assignment 'newwin=malloc(sizeof(struct NEWWIN))', assigned value is 0 fi-1.36/term.c:140:9: note: Null pointer dereference fi-1.36/term.c:141:2: warning: If memory allocation fails, then there is a possible null pointer dereference: newwin [nullPointerOutOfMemory] fi-1.36/term.c:137:32: note: Assuming allocation function fails fi-1.36/term.c:137:32: note: Assignment 'newwin=malloc(sizeof(struct NEWWIN))', assigned value is 0 fi-1.36/term.c:141:2: note: Null pointer dereference fi-1.36/term.c:141:29: warning: If memory allocation fails, then there is a possible null pointer dereference: newwin [nullPointerOutOfMemory] fi-1.36/term.c:137:32: note: Assuming allocation function fails fi-1.36/term.c:137:32: note: Assignment 'newwin=malloc(sizeof(struct NEWWIN))', assigned value is 0 fi-1.36/term.c:141:29: note: Null pointer dereference fi-1.36/term.c:142:16: warning: If memory allocation fails, then there is a possible null pointer dereference: newwin [nullPointerOutOfMemory] fi-1.36/term.c:137:32: note: Assuming allocation function fails fi-1.36/term.c:137:32: note: Assignment 'newwin=malloc(sizeof(struct NEWWIN))', assigned value is 0 fi-1.36/term.c:142:16: note: Null pointer dereference fi-1.36/term.c:144:2: warning: If memory allocation fails, then there is a possible null pointer dereference: newwin [nullPointerOutOfMemory] fi-1.36/term.c:137:32: note: Assuming allocation function fails fi-1.36/term.c:137:32: note: Assignment 'newwin=malloc(sizeof(struct NEWWIN))', assigned value is 0 fi-1.36/term.c:144:2: note: Null pointer dereference fi-1.36/term.c:145:2: warning: If memory allocation fails, then there is a possible null pointer dereference: newwin [nullPointerOutOfMemory] fi-1.36/term.c:137:32: note: Assuming allocation function fails fi-1.36/term.c:137:32: note: Assignment 'newwin=malloc(sizeof(struct NEWWIN))', assigned value is 0 fi-1.36/term.c:145:2: note: Null pointer dereference fi-1.36/term.c:147:2: warning: If memory allocation fails, then there is a possible null pointer dereference: newwin [nullPointerOutOfMemory] fi-1.36/term.c:137:32: note: Assuming allocation function fails fi-1.36/term.c:137:32: note: Assignment 'newwin=malloc(sizeof(struct NEWWIN))', assigned value is 0 fi-1.36/term.c:147:2: note: Null pointer dereference fi-1.36/term.c:148:2: warning: If memory allocation fails, then there is a possible null pointer dereference: newwin [nullPointerOutOfMemory] fi-1.36/term.c:137:32: note: Assuming allocation function fails fi-1.36/term.c:137:32: note: Assignment 'newwin=malloc(sizeof(struct NEWWIN))', assigned value is 0 fi-1.36/term.c:148:2: note: Null pointer dereference fi-1.36/term.c:402:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] fi-1.36/term.c:393:29: note: Assuming allocation function fails fi-1.36/term.c:393:15: note: Assignment 'line=(char*)calloc(1,win->ncols+1)', assigned value is 0 fi-1.36/term.c:402:9: note: Null pointer dereference fi-1.36/term.c:425:9: warning: If memory allocation fails, then there is a possible null pointer dereference: end_marker [nullPointerOutOfMemory] fi-1.36/term.c:423:35: note: Assuming allocation function fails fi-1.36/term.c:423:21: note: Assignment 'end_marker=(char*)calloc(1,win->ncols+1)', assigned value is 0 fi-1.36/term.c:425:9: note: Null pointer dereference fi-1.36/term.c:214:60: style:inconclusive: Function 'escape_print' argument 3 names different: declaration 'reverse' definition 'rev'. [funcArgNamesDifferent] fi-1.36/term.h:38:60: note: Function 'escape_print' argument 3 names different: declaration 'reverse' definition 'rev'. fi-1.36/term.c:214:60: note: Function 'escape_print' argument 3 names different: declaration 'reverse' definition 'rev'. fi-1.36/term.c:214:76: style:inconclusive: Function 'escape_print' argument 4 names different: declaration 'underline' definition 'un'. [funcArgNamesDifferent] fi-1.36/term.h:38:80: note: Function 'escape_print' argument 4 names different: declaration 'underline' definition 'un'. fi-1.36/term.c:214:76: note: Function 'escape_print' argument 4 names different: declaration 'underline' definition 'un'. fi-1.36/term.c:269:9: style: Variable 'dummy' can be declared as pointer to const [constVariablePointer] fi-1.36/theme.c:152:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] fi-1.36/theme.c:187:12: warning: Either the condition '!is' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fi-1.36/theme.c:183:7: note: Assuming that condition '!is' is not redundant fi-1.36/theme.c:187:12: note: Null pointer addition fi-1.36/theme.c:274:33: warning: Either the condition '!komma' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fi-1.36/theme.c:272:10: note: Assuming that condition '!komma' is not redundant fi-1.36/theme.c:274:33: note: Null pointer addition fi-1.36/theme.c:220:10: style: Variable 'komma' can be declared as pointer to const [constVariablePointer] fi-1.36/utf8.c:153:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] fi-1.36/utf8.c:143:28: note: Assuming allocation function fails fi-1.36/utf8.c:143:14: note: Assignment 'out=(char*)malloc(in->len+1)', assigned value is 0 fi-1.36/utf8.c:153:2: note: Null pointer dereference fi-1.36/utf8.c:188:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] fi-1.36/utf8.c:166:28: note: Assuming allocation function fails fi-1.36/utf8.c:166:14: note: Assignment 'out=(char*)malloc(in->len*4+1)', assigned value is 0 fi-1.36/utf8.c:188:2: note: Null pointer dereference fi-1.36/utf8.c:211:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] fi-1.36/utf8.c:200:34: note: Assuming allocation function fails fi-1.36/utf8.c:200:17: note: Assignment 'out=(wchar_t*)malloc((in->len+1)*sizeof(wchar_t))', assigned value is 0 fi-1.36/utf8.c:211:3: note: Null pointer dereference fi-1.36/utf8.c:209:40: error: Null pointer dereference [nullPointer] fi-1.36/utf8.c:209:16: error: Memory is allocated but not initialized: out [uninitdata] fi-1.36/utils.c:28:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] fi-1.36/utils.c:88:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/utils.c:131:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fi-1.36/utils.c:294:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pollfd [valueFlowBailoutIncompleteVar] fi-1.36/utils.c:319:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fi-1.36/utils.c:383:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] fi-1.36/utils.c:386:3: warning: Return value of function dup() is not used. [ignoredReturnValue] fi-1.36/utils.c:389:3: warning: Return value of function dup() is not used. [ignoredReturnValue] fi-1.36/utils.c:392:3: warning: Return value of function dup() is not used. [ignoredReturnValue] fi-1.36/utils.c:173:10: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] fi-1.36/utils.c:171:20: note: Assuming allocation function fails fi-1.36/utils.c:171:20: note: Assignment 'out=malloc(new_len+1)', assigned value is 0 fi-1.36/utils.c:173:10: note: Null pointer dereference fi-1.36/utils.c:176:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] fi-1.36/utils.c:171:20: note: Assuming allocation function fails fi-1.36/utils.c:171:20: note: Assignment 'out=malloc(new_len+1)', assigned value is 0 fi-1.36/utils.c:176:2: note: Null pointer dereference fi-1.36/utils.c:317:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: file_path [nullPointerOutOfMemory] fi-1.36/utils.c:310:26: note: Assuming allocation function fails fi-1.36/utils.c:310:26: note: Assignment 'file_path=strdup(file_path_in)', assigned value is 0 fi-1.36/utils.c:317:13: note: Null pointer dereference fi-1.36/utils.c:313:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fi-1.36/utils.c:310:26: note: Assuming allocation function fails fi-1.36/utils.c:310:26: note: Assignment 'file_path=strdup(file_path_in)', assigned value is 0 fi-1.36/utils.c:313:25: note: Null pointer addition fi-1.36/utils.c:268:16: style:inconclusive: Function 'LOG' argument 1 names different: declaration 'str' definition 's'. [funcArgNamesDifferent] fi-1.36/utils.h:15:16: note: Function 'LOG' argument 1 names different: declaration 'str' definition 's'. fi-1.36/utils.c:268:16: note: Function 'LOG' argument 1 names different: declaration 'str' definition 's'. fi-1.36/utils.c:268:16: style: Parameter 's' can be declared as pointer to const [constParameterPointer] fi-1.36/utils.c:360:26: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] fi-1.36/utils.c:368:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] fi-1.36/user.c:43:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] fi-1.36/user.c:89:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] fi-1.36/user.c:247:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_BACKSPACE [valueFlowBailoutIncompleteVar] fi-1.36/user.c:987:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] fi-1.36/user.c:1230:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/user.c:1408:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/user.c:1605:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_LEFT [valueFlowBailoutIncompleteVar] fi-1.36/user.c:1820:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_LEFT [valueFlowBailoutIncompleteVar] fi-1.36/user.c:1975:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_LEFT [valueFlowBailoutIncompleteVar] fi-1.36/user.c:2114:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/user.c:2143:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_UNDERLINE [valueFlowBailoutIncompleteVar] fi-1.36/user.c:2365:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/wordcloud.c:147:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] fi-1.36/wordcloud.c:170:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_STANDOUT [valueFlowBailoutIncompleteVar] fi-1.36/wordcloud.c:269:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_UP [valueFlowBailoutIncompleteVar] fi-1.36/wordcloud.c:345:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUTTON1_CLICKED [valueFlowBailoutIncompleteVar] fi-1.36/wordcloud.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] fi-1.36/wordcloud.c:62:30: note: Assuming allocation function fails fi-1.36/wordcloud.c:62:16: note: Assignment 'temp=(char*)calloc(1,len+1)', assigned value is 0 fi-1.36/wordcloud.c:70:3: note: Null pointer dereference fi-1.36/main.c:1114:9: style: Condition 'do_line' is always true [knownConditionTrueFalse] fi-1.36/main.c:1074:20: note: Assignment 'do_line=1', assigned value is 1 fi-1.36/main.c:1114:9: note: Condition 'do_line' is always true fi-1.36/main.c:1064:10: style: Local variable 'c' shadows outer variable [shadowVariable] fi-1.36/main.c:757:7: note: Shadowed declaration fi-1.36/main.c:1064:10: note: Shadow variable fi-1.36/main.c:1102:12: style: Local variable 'c' shadows outer variable [shadowVariable] fi-1.36/main.c:757:7: note: Shadowed declaration fi-1.36/main.c:1102:12: note: Shadow variable fi-1.36/main.c:770:10: style: Variable 'x' is assigned a value that is never used. [unreadVariable] fi-1.36/main.c:770:17: style: Variable 'y' is assigned a value that is never used. [unreadVariable] fi-1.36/user.c:70:2: warning: Return value of function vasprintf() is not used. [ignoredReturnValue] fi-1.36/user.c:51:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] fi-1.36/user.c:202:3: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] fi-1.36/user.c:201:24: note: Assuming allocation function fails fi-1.36/user.c:201:10: note: Assignment 'line=(char*)malloc(1)', assigned value is 0 fi-1.36/user.c:202:3: note: Null pointer dereference fi-1.36/user.c:210:26: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] fi-1.36/user.c:198:16: note: Assuming allocation function fails fi-1.36/user.c:198:16: note: Assignment 'line=strdup(initial)', assigned value is 0 fi-1.36/user.c:210:26: note: Null pointer dereference fi-1.36/user.c:234:14: warning: If memory allocation fails, then there is a possible null pointer dereference: dummy [nullPointerOutOfMemory] fi-1.36/user.c:233:17: note: Assuming allocation function fails fi-1.36/user.c:233:17: note: Assignment 'dummy=strdup(&line[offset])', assigned value is 0 fi-1.36/user.c:234:14: note: Null pointer dereference fi-1.36/user.c:523:23: warning: If memory allocation fails, then there is a possible null pointer dereference: command [nullPointerOutOfMemory] fi-1.36/user.c:522:25: note: Assuming allocation function fails fi-1.36/user.c:522:25: note: Assignment 'command=strdup(user_line+1)', assigned value is 0 fi-1.36/user.c:523:23: note: Null pointer dereference fi-1.36/user.c:1223:4: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] fi-1.36/user.c:1217:33: note: Assuming allocation function fails fi-1.36/user.c:1217:19: note: Assignment 'buffer=(char*)malloc(cols+1)', assigned value is 0 fi-1.36/user.c:1223:4: note: Null pointer dereference fi-1.36/user.c:1403:4: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] fi-1.36/user.c:1398:33: note: Assuming allocation function fails fi-1.36/user.c:1398:19: note: Assignment 'buffer=(char*)malloc(cols+1)', assigned value is 0 fi-1.36/user.c:1403:4: note: Null pointer dereference fi-1.36/user.c:2322:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str_out [nullPointerOutOfMemory] fi-1.36/user.c:2316:35: note: Assuming allocation function fails fi-1.36/user.c:2316:21: note: Assignment 'str_out=(char*)calloc(1,win_width-2+1)', assigned value is 0 fi-1.36/user.c:2322:15: note: Null pointer dereference fi-1.36/user.c:442:20: style:inconclusive: Function 'cmd_LEAVE' argument 1 names different: declaration 'current_server' definition 'server_nr'. [funcArgNamesDifferent] fi-1.36/user.h:10:20: note: Function 'cmd_LEAVE' argument 1 names different: declaration 'current_server' definition 'server_nr'. fi-1.36/user.c:442:20: note: Function 'cmd_LEAVE' argument 1 names different: declaration 'current_server' definition 'server_nr'. fi-1.36/user.c:442:35: style:inconclusive: Function 'cmd_LEAVE' argument 2 names different: declaration 'current_server_channel_nr' definition 'server_channel_nr'. [funcArgNamesDifferent] fi-1.36/user.h:10:40: note: Function 'cmd_LEAVE' argument 2 names different: declaration 'current_server_channel_nr' definition 'server_channel_nr'. fi-1.36/user.c:442:35: note: Function 'cmd_LEAVE' argument 2 names different: declaration 'current_server_channel_nr' definition 'server_channel_nr'. fi-1.36/user.c:935:19: style:inconclusive: Function 'user_menu' argument 1 names different: declaration 'server_index' definition 'sr'. [funcArgNamesDifferent] fi-1.36/user.h:12:19: note: Function 'user_menu' argument 1 names different: declaration 'server_index' definition 'sr'. fi-1.36/user.c:935:19: note: Function 'user_menu' argument 1 names different: declaration 'server_index' definition 'sr'. fi-1.36/user.c:935:27: style:inconclusive: Function 'user_menu' argument 2 names different: declaration 'channel_index' definition 'ch'. [funcArgNamesDifferent] fi-1.36/user.h:12:37: note: Function 'user_menu' argument 2 names different: declaration 'channel_index' definition 'ch'. fi-1.36/user.c:935:27: note: Function 'user_menu' argument 2 names different: declaration 'channel_index' definition 'ch'. fi-1.36/user.c:1950:43: style:inconclusive: Function 'user_channel_menu' argument 2 names different: declaration 'user' definition 'nick'. [funcArgNamesDifferent] fi-1.36/user.h:17:43: note: Function 'user_channel_menu' argument 2 names different: declaration 'user' definition 'nick'. fi-1.36/user.c:1950:43: note: Function 'user_channel_menu' argument 2 names different: declaration 'user' definition 'nick'. fi-1.36/user.c:313:8: style: Local variable 'l' shadows outer variable [shadowVariable] fi-1.36/user.c:210:15: note: Shadowed declaration fi-1.36/user.c:313:8: note: Shadow variable fi-1.36/user.c:338:8: style: Local variable 'l' shadows outer variable [shadowVariable] fi-1.36/user.c:210:15: note: Shadowed declaration fi-1.36/user.c:338:8: note: Shadow variable fi-1.36/user.c:482:7: style: Local variable 'cur_channel' shadows outer function [shadowFunction] fi-1.36/main.h:20:10: note: Shadowed declaration fi-1.36/user.c:482:7: note: Shadow variable fi-1.36/user.c:1888:13: style: Local variable 'bwin' shadows outer variable [shadowVariable] fi-1.36/user.c:1720:10: note: Shadowed declaration fi-1.36/user.c:1888:13: note: Shadow variable fi-1.36/user.c:1888:27: style: Local variable 'win' shadows outer variable [shadowVariable] fi-1.36/user.c:1720:24: note: Shadowed declaration fi-1.36/user.c:1888:27: note: Shadow variable fi-1.36/user.c:625:14: style: Variable 'pch' can be declared as pointer to const [constVariablePointer] fi-1.36/user.c:649:14: style: Variable 'pch' can be declared as pointer to const [constVariablePointer] fi-1.36/user.c:824:13: style: Variable 'pc' can be declared as pointer to const [constVariablePointer] fi-1.36/user.c:836:13: style: Variable 'pc' can be declared as pointer to const [constVariablePointer] fi-1.36/user.c:915:11: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] fi-1.36/user.c:939:8: style: Variable 'channel_name' can be declared as pointer to const [constVariablePointer] fi-1.36/user.c:1731:9: style: Variable 'ss' can be declared as pointer to const [constVariablePointer] fi-1.36/user.c:2317:11: style: Variable 'pb' can be declared as pointer to const [constVariablePointer] fi-1.36/user.c:2319:11: style: Variable 'pc' can be declared as pointer to const [constVariablePointer] fi-1.36/user.c:2620:15: style: Variable 'pc' can be declared as pointer to const [constVariablePointer] fi-1.36/user.c:147:11: style: Variable 'ret_ok' is assigned a value that is never used. [unreadVariable] fi-1.36/user.c:2126:12: style: Variable 'color' is assigned a value that is never used. [unreadVariable] fi-1.36/user.c:2177:10: style: Variable 'color' is assigned a value that is never used. [unreadVariable] fi-1.36/user.c:2184:11: style: Variable 'color' is assigned a value that is never used. [unreadVariable] fi-1.36/user.c:2193:10: style: Variable 'color' is assigned a value that is never used. [unreadVariable] fi-1.36/user.c:2541:40: style: Variable 'loop' is assigned a value that is never used. [unreadVariable] fi-1.36/user.c:2610:11: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] diff: 2.17.0 fi-1.36/ansi.c:46:28: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fi-1.36/ansi.c:40:21: note: Assuming allocation function fails fi-1.36/ansi.c:40:21: note: Assignment 'ansi=strdup(ansi_in)', assigned value is 0 fi-1.36/ansi.c:46:28: note: Null pointer addition head fi-1.36/ansi.c:46:28: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fi-1.36/ansi.c:40:21: note: Assuming allocation function fails fi-1.36/ansi.c:40:21: note: Assignment 'ansi=strdup(ansi_in)', assigned value is 0 fi-1.36/ansi.c:46:28: note: Null pointer addition head fi-1.36/chistory.c:22:29: warning: If memory allocation fails, then there is a possible null pointer dereference: channel_history [nullPointerOutOfMemory] fi-1.36/chistory.c:17:26: note: Assuming allocation function fails fi-1.36/chistory.c:17:26: note: Assignment 'channel_history=calloc(sizeof(struct ch_t),max_n)', assigned value is 0 fi-1.36/chistory.c:22:29: note: Null pointer dereference 2.17.0 fi-1.36/names.c:113:55: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fi-1.36/names.c:489:28: note: Assuming allocation function fails fi-1.36/names.c:489:28: note: Assignment 'search_nick=strdup(has_nick_mode(nick)?nick+1:nick)', assigned value is 0 fi-1.36/names.c:494:22: note: Calling function 'search_for_nick', 2nd argument 'search_nick' value is 0 fi-1.36/names.c:113:55: note: Null pointer addition head fi-1.36/names.c:113:55: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fi-1.36/names.c:489:28: note: Assuming allocation function fails fi-1.36/names.c:489:28: note: Assignment 'search_nick=strdup(has_nick_mode(nick)?nick+1:nick)', assigned value is 0 fi-1.36/names.c:494:22: note: Calling function 'search_for_nick', 2nd argument 'search_nick' value is 0 fi-1.36/names.c:113:55: note: Null pointer addition head fi-1.36/tcp.c:26:14: style: Variable 'interval' is assigned a value that is never used. [unreadVariable] head fi-1.36/term.c:141:29: warning: If memory allocation fails, then there is a possible null pointer dereference: newwin [nullPointerOutOfMemory] fi-1.36/term.c:137:32: note: Assuming allocation function fails fi-1.36/term.c:137:32: note: Assignment 'newwin=malloc(sizeof(struct NEWWIN))', assigned value is 0 fi-1.36/term.c:141:29: note: Null pointer dereference 2.17.0 fi-1.36/utils.c:313:25: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fi-1.36/utils.c:310:26: note: Assuming allocation function fails fi-1.36/utils.c:310:26: note: Assignment 'file_path=strdup(file_path_in)', assigned value is 0 fi-1.36/utils.c:313:25: note: Null pointer addition head fi-1.36/utils.c:313:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fi-1.36/utils.c:310:26: note: Assuming allocation function fails fi-1.36/utils.c:310:26: note: Assignment 'file_path=strdup(file_path_in)', assigned value is 0 fi-1.36/utils.c:313:25: note: Null pointer addition DONE