2022-06-29 19:27 ftp://ftp.de.debian.org/debian/pool/main/m/mle/mle_1.5.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j10 platform: Linux-5.18.6-1-MANJARO-x86_64-with-glibc2.35 python: 3.10.5 client-version: 1.3.25 compiler: g++ (GCC) 12.1.0 cppcheck: head 2.8 head-info: 06b408e (2022-06-29 13:43:17 +0200) count: 168 165 elapsed-time: 2.2 1.9 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: mle-debian_1_5_0/tests/unit/test.c:29:28: error: Resource leak: self [resourceLeak] mle-debian_1_5_0/bline.c:146:38: style:inconclusive: Function 'bline_get_col_from_vcol' argument 1 names different: declaration 'self' definition 'bline'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:210:38: note: Function 'bline_get_col_from_vcol' argument 1 names different: declaration 'self' definition 'bline'. mle-debian_1_5_0/bline.c:146:38: note: Function 'bline_get_col_from_vcol' argument 1 names different: declaration 'self' definition 'bline'. mle-debian_1_5_0/tests/unit/test_buffer_destroy.c:6:5: style: Same expression on both sides of '=='. [duplicateExpression] mle-debian_1_5_0/aproc.c:96:23: error: Uninitialized variable: aproc->rfd [uninitvar] mle-debian_1_5_0/aproc.c:78:9: note: Assuming condition is false mle-debian_1_5_0/aproc.c:96:23: note: Uninitialized variable: aproc->rfd mle-debian_1_5_0/tests/unit/test_buffer_new.c:6:5: style: Same expression on both sides of '=='. [duplicateExpression] mle-debian_1_5_0/mark.c:605:19: style: Condition 'rc!=NULL' is always true [knownConditionTrueFalse] mle-debian_1_5_0/mark.c:600:12: note: Assuming condition 'rc==NULL' is false mle-debian_1_5_0/mark.c:605:19: note: Condition 'rc!=NULL' is always true mle-debian_1_5_0/mark.c:605:38: style: Condition 'ovector!=NULL' is always true [knownConditionTrueFalse] mle-debian_1_5_0/mark.c:600:31: note: Assuming condition 'ovector==NULL' is false mle-debian_1_5_0/mark.c:605:38: note: Condition 'ovector!=NULL' is always true mle-debian_1_5_0/mark.c:707:37: style: Condition 'self->colchar_count' is always true [knownConditionTrueFalse] mle-debian_1_5_0/mark.c:700:23: note: Assuming condition 'self->col>=search_line->char_count' is false mle-debian_1_5_0/mark.c:707:37: note: Condition 'self->colchar_count' is always true mle-debian_1_5_0/mark.c:539:119: style:inconclusive: Function 'mark_move_next_str_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:263:119: note: Function 'mark_move_next_str_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:539:119: note: Function 'mark_move_next_str_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:543:119: style:inconclusive: Function 'mark_move_prev_str_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:271:119: note: Function 'mark_move_prev_str_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:543:119: note: Function 'mark_move_prev_str_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:547:103: style:inconclusive: Function 'mark_move_next_cre_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:257:103: note: Function 'mark_move_next_cre_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:547:103: note: Function 'mark_move_next_cre_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:551:103: style:inconclusive: Function 'mark_move_prev_cre_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:267:103: note: Function 'mark_move_prev_cre_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:551:103: note: Function 'mark_move_prev_cre_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:555:116: style:inconclusive: Function 'mark_move_next_re_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:260:116: note: Function 'mark_move_next_re_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:555:116: note: Function 'mark_move_next_re_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:559:116: style:inconclusive: Function 'mark_move_prev_re_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:269:116: note: Function 'mark_move_prev_re_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:559:116: note: Function 'mark_move_prev_re_ex' argument 6 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:563:114: style:inconclusive: Function 'mark_move_bracket_pair_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:249:114: note: Function 'mark_move_bracket_pair_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:563:114: note: Function 'mark_move_bracket_pair_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:567:113: style:inconclusive: Function 'mark_move_bracket_top_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:251:113: note: Function 'mark_move_bracket_top_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/mark.c:567:113: note: Function 'mark_move_bracket_top_ex' argument 5 names different: declaration 'optret_num_chars' definition 'optret_char_count'. mle-debian_1_5_0/buffer.c:1512:31: style: The statement 'if (*open_rule!=NULL) *open_rule=NULL' is logically equivalent to '*open_rule=NULL'. [duplicateConditionalAssign] mle-debian_1_5_0/buffer.c:1513:24: note: Assignment '*open_rule=NULL' mle-debian_1_5_0/buffer.c:1512:31: note: Condition '*open_rule!=NULL' is redundant mle-debian_1_5_0/buffer.c:1310:13: style: Condition '!do_delete' is always true [knownConditionTrueFalse] mle-debian_1_5_0/buffer.c:1308:17: note: Assignment 'do_delete=0', assigned value is 0 mle-debian_1_5_0/buffer.c:1310:13: note: Condition '!do_delete' is always true mle-debian_1_5_0/buffer.c:917:17: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] mle-debian_1_5_0/buffer.c:603:90: style:inconclusive: Function 'buffer_replace_w_bline' argument 4 names different: declaration 'num_chars' definition 'del_chars'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:182:90: note: Function 'buffer_replace_w_bline' argument 4 names different: declaration 'num_chars' definition 'del_chars'. mle-debian_1_5_0/buffer.c:603:90: note: Function 'buffer_replace_w_bline' argument 4 names different: declaration 'num_chars' definition 'del_chars'. mle-debian_1_5_0/buffer.c:869:156: style:inconclusive: Function 'buffer_substr' argument 8 names different: declaration 'ret_nchars' definition 'ret_data_nchars'. [funcArgNamesDifferent] mle-debian_1_5_0/mlbuf.h:176:156: note: Function 'buffer_substr' argument 8 names different: declaration 'ret_nchars' definition 'ret_data_nchars'. mle-debian_1_5_0/buffer.c:869:156: note: Function 'buffer_substr' argument 8 names different: declaration 'ret_nchars' definition 'ret_data_nchars'. mle-debian_1_5_0/buffer.c:273:19: error: Uninitialized variable: node->srule [uninitvar] mle-debian_1_5_0/buffer.c:826:19: error: Uninitialized variable: node->srule [uninitvar] mle-debian_1_5_0/buffer.c:1310:27: error: Uninitialized variables: action_target.type, action_target.buffer, action_target.start_line, action_target.start_line_index, action_target.start_col, action_target.maybe_end_line, action_target.maybe_end_line_index, action_target.maybe_end_col, action_target.byte_delta, action_target.char_delta, action_target.line_delta, action_target.action_group, action_target.data, action_target.data_len, action_target.next, action_target.prev [uninitvar] mle-debian_1_5_0/buffer.c:1356:62: error: Uninitialized variable: srule_node->srule [uninitvar] mle-debian_1_5_0/buffer.c:1418:61: error: Uninitialized variable: srule_node->srule [uninitvar] mle-debian_1_5_0/buffer.c:1547:39: error: Uninitialized variables: mark.bline, mark.col, mark.target_col, mark.range_srule, mark.letter, mark.next, mark.prev, mark.lefty [uninitvar] mle-debian_1_5_0/buffer.c:1599:45: error: Uninitialized variables: mark.bline, mark.col, mark.target_col, mark.range_srule, mark.letter, mark.next, mark.prev, mark.lefty [uninitvar] mle-debian_1_5_0/buffer.c:1668:19: error: Uninitialized variable: mark->col [uninitvar] mle-debian_1_5_0/buffer.c:1716:49: error: Uninitialized variables: mark.bline, mark.col, mark.target_col, mark.range_srule, mark.letter, mark.next, mark.prev, mark.lefty [uninitvar] mle-debian_1_5_0/buffer.c:62:13: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] mle-debian_1_5_0/buffer.c:1452:17: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] mle-debian_1_5_0/buffer.c:1909:13: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] mle-debian_1_5_0/util.c:76:13: style: Condition 'do_read' is always false [knownConditionTrueFalse] mle-debian_1_5_0/util.c:76:13: note: Assuming that condition 'do_read' is not redundant mle-debian_1_5_0/util.c:76:13: note: Condition 'do_read' is always false mle-debian_1_5_0/util.c:117:32: style: Condition 'do_read' is always false [knownConditionTrueFalse] mle-debian_1_5_0/util.c:76:13: note: Assuming that condition 'do_read' is not redundant mle-debian_1_5_0/util.c:117:32: note: Condition 'do_read' is always false mle-debian_1_5_0/util.c:120:9: style: Condition 'do_read' is always false [knownConditionTrueFalse] mle-debian_1_5_0/util.c:76:13: note: Assuming that condition 'do_read' is not redundant mle-debian_1_5_0/util.c:120:9: note: Condition 'do_read' is always false mle-debian_1_5_0/util.c:135:32: style:inconclusive: Function 'util_popen2' argument 2 names different: declaration 'setsid' definition 'do_setsid'. [funcArgNamesDifferent] mle-debian_1_5_0/mle.h:580:32: note: Function 'util_popen2' argument 2 names different: declaration 'setsid' definition 'do_setsid'. mle-debian_1_5_0/util.c:135:32: note: Function 'util_popen2' argument 2 names different: declaration 'setsid' definition 'do_setsid'. mle-debian_1_5_0/util.c:362:72: style:inconclusive: Function 'util_expand_tilde' argument 4 names different: declaration 'ret_path_len' definition 'optret_path_len'. [funcArgNamesDifferent] mle-debian_1_5_0/mle.h:588:72: note: Function 'util_expand_tilde' argument 4 names different: declaration 'ret_path_len' definition 'optret_path_len'. mle-debian_1_5_0/util.c:362:72: note: Function 'util_expand_tilde' argument 4 names different: declaration 'ret_path_len' definition 'optret_path_len'. mle-debian_1_5_0/util.c:456:52: style: Parameter 'data_stop' can be declared as pointer to const [constParameter] mle-debian_1_5_0/util.c:478:53: style: Parameter 'data_stop' can be declared as pointer to const [constParameter] mle-debian_1_5_0/util.c:578:93: style: Parameter 'pcre_ovector' can be declared as pointer to const [constParameter] mle-debian_1_5_0/util.c:450:23: portability: 'newptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mle-debian_1_5_0/util.c:257:19: style: Variable 'got_match' is assigned a value that is never used. [unreadVariable] mle-debian_1_5_0/util.c:271:19: style: Variable 'subj_offset_z' is assigned a value that is never used. [unreadVariable] mle-debian_1_5_0/bview.c:299:58: style: Parameter 'one' can be declared as pointer to const [constParameter] mle-debian_1_5_0/bview.c:506:46: style: Parameter 'buffer' can be declared as pointer to const [constParameter] mle-debian_1_5_0/bview.c:187:32: error: Uninitialized variables: cursor.bview, cursor.mark, cursor.anchor, cursor.is_anchored, cursor.is_temp_anchored, cursor.is_asleep, cursor.sel_rule, cursor.cut_buffer, cursor.next, cursor.prev [uninitvar] mle-debian_1_5_0/bview.c:183:78: note: Assuming condition is false mle-debian_1_5_0/bview.c:187:32: note: Uninitialized variables: cursor.bview, cursor.mark, cursor.anchor, cursor.is_anchored, cursor.is_temp_anchored, cursor.is_asleep, cursor.sel_rule, cursor.cut_buffer, cursor.next, cursor.prev mle-debian_1_5_0/bview.c:253:22: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/bview.c:291:21: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/bview.c:303:13: error: Uninitialized variables: cursor.bview, cursor.mark, cursor.anchor, cursor.is_anchored, cursor.is_temp_anchored, cursor.is_asleep, cursor.sel_rule, cursor.cut_buffer, cursor.next, cursor.prev [uninitvar] mle-debian_1_5_0/bview.c:315:13: error: Uninitialized variables: el.bview, el.mark, el.anchor, el.is_anchored, el.is_temp_anchored, el.is_asleep, el.sel_rule, el.cut_buffer, el.next, el.prev [uninitvar] mle-debian_1_5_0/bview.c:526:24: error: Uninitialized variable: bview->buffer [uninitvar] mle-debian_1_5_0/bview.c:582:59: error: Uninitialized variable: srule_node->srule [uninitvar] mle-debian_1_5_0/bview.c:600:38: error: Uninitialized variables: listener.callback, listener.udata, listener.next, listener.prev [uninitvar] mle-debian_1_5_0/bview.c:655:59: error: Uninitialized variable: srule_node->srule [uninitvar] mle-debian_1_5_0/bview.c:629:9: note: Assuming condition is false mle-debian_1_5_0/bview.c:655:59: note: Uninitialized variable: srule_node->srule mle-debian_1_5_0/bview.c:882:14: error: Uninitialized variable: bview_tmp->type [uninitvar] mle-debian_1_5_0/bview.c:1188:42: error: Uninitialized variable: node->srule [uninitvar] mle-debian_1_5_0/cmd.c:672:5: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/cmd.c:699:5: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/cmd.c:716:5: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/cmd.c:988:5: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/cmd.c:1047:5: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/cmd.c:1242:9: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/cmd.c:1641:5: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/cmd.c:1675:9: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/cmd.c:1754:13: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/cmd.c:1618:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/cmd.c:1626:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/cmd.c:1242:9: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'intmax_t {aka signed long}'. [invalidPrintfArgType_sint] mle-debian_1_5_0/cmd.c:1242:9: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'signed int'. [invalidPrintfArgType_sint] mle-debian_1_5_0/cmd.c:750:21: warning: Either the condition 'bview->buffer' is redundant or there is possible null pointer dereference: bview->buffer. [nullPointerRedundantCheck] mle-debian_1_5_0/cmd.c:758:18: note: Assuming that condition 'bview->buffer' is not redundant mle-debian_1_5_0/cmd.c:750:21: note: Null pointer dereference mle-debian_1_5_0/cmd.c:1528:51: style:inconclusive: Function '_cmd_aproc_bview_passthru_cb' argument 1 names different: declaration 'self' definition 'aproc'. [funcArgNamesDifferent] mle-debian_1_5_0/cmd.c:37:51: note: Function '_cmd_aproc_bview_passthru_cb' argument 1 names different: declaration 'self' definition 'aproc'. mle-debian_1_5_0/cmd.c:1528:51: note: Function '_cmd_aproc_bview_passthru_cb' argument 1 names different: declaration 'self' definition 'aproc'. mle-debian_1_5_0/cmd.c:1552:45: style:inconclusive: Function '_cmd_isearch_prompt_cb' argument 1 names different: declaration 'bview' definition 'bview_prompt'. [funcArgNamesDifferent] mle-debian_1_5_0/cmd.c:38:45: note: Function '_cmd_isearch_prompt_cb' argument 1 names different: declaration 'bview' definition 'bview_prompt'. mle-debian_1_5_0/cmd.c:1552:45: note: Function '_cmd_isearch_prompt_cb' argument 1 names different: declaration 'bview' definition 'bview_prompt'. mle-debian_1_5_0/cmd.c:109:9: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:117:9: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:128:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:138:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:154:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:160:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:168:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:188:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:195:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:202:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:209:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:216:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:223:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:230:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:237:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:244:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:258:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:277:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:283:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:290:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:297:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:304:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:311:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:323:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:335:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:346:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:354:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:366:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:371:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:400:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:430:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:446:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:513:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:548:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:556:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:564:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:572:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:580:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:590:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:600:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:738:14: error: Uninitialized variable: bview->type [uninitvar] mle-debian_1_5_0/cmd.c:838:14: error: Uninitialized variable: bview->type [uninitvar] mle-debian_1_5_0/cmd.c:836:33: note: Assuming condition is false mle-debian_1_5_0/cmd.c:838:14: note: Uninitialized variable: bview->type mle-debian_1_5_0/cmd.c:899:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:911:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:945:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:1137:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:1304:35: error: Uninitialized variable: kmap_node->kmap [uninitvar] mle-debian_1_5_0/cmd.c:1316:30: warning: Uninitialized variable: kmap->name [uninitvar] mle-debian_1_5_0/cmd.c:1344:22: error: Uninitialized variable: binding->children [uninitvar] mle-debian_1_5_0/cmd.c:1722:20: error: Uninitialized variable: bview->id [uninitvar] mle-debian_1_5_0/cmd.c:1709:9: note: Assuming condition is false mle-debian_1_5_0/cmd.c:1722:20: note: Uninitialized variable: bview->id mle-debian_1_5_0/cmd.c:1828:5: error: Uninitialized variable: cursor->is_asleep [uninitvar] mle-debian_1_5_0/cmd.c:1637:12: style: Variable 're_len' is assigned a value that is never used. [unreadVariable] mle-debian_1_5_0/editor.c:118:17: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/editor.c:656:5: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/editor.c:960:5: warning: Return value of function asprintf() is not used. [ignoredReturnValue] mle-debian_1_5_0/termbox2.h:2188:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/termbox2.h:2194:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:684:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:693:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1823:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1824:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1825:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1833:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1834:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1835:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1873:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1891:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1975:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1976:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1977:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1978:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:1999:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:2000:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:2001:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:2002:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mle-debian_1_5_0/editor.c:2060:13: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] mle-debian_1_5_0/editor.c:2069:9: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] mle-debian_1_5_0/termbox2.h:2526:5: warning: Redundant assignment of 'rv' to itself. [selfAssignment] mle-debian_1_5_0/termbox2.h:3131:16: style: Checking if unsigned expression 'b->len' is less than zero. [unsignedLessThanZero] mle-debian_1_5_0/editor.c:442:60: style: Parameter 'bview' can be declared as pointer to const [constParameter] mle-debian_1_5_0/editor.c:462:63: style: Parameter 'buffer' can be declared as pointer to const [constParameter] mle-debian_1_5_0/editor.c:1157:85: style: Parameter 'input' can be declared as pointer to const [constParameter] mle-debian_1_5_0/editor.c:215:41: warning: Uninitialized variables: observer.event_patt, observer.callback, observer.udata, observer.next, observer.prev [uninitvar] mle-debian_1_5_0/editor.c:306:24: error: Uninitialized variable: bview->buffer [uninitvar] mle-debian_1_5_0/editor.c:398:14: error: Uninitialized variable: bview->type [uninitvar] mle-debian_1_5_0/editor.c:401:113: error: Uninitialized variable: cursor->mark [uninitvar] mle-debian_1_5_0/editor.c:398:13: note: Assuming condition is false mle-debian_1_5_0/editor.c:401:113: note: Uninitialized variable: cursor->mark mle-debian_1_5_0/editor.c:412:79: warning: Uninitialized variable: buffer [uninitvar] mle-debian_1_5_0/editor.c:398:13: note: Assuming condition is false mle-debian_1_5_0/editor.c:411:23: note: Assignment 'buffer=bview->buffer', assigned value is mle-debian_1_5_0/editor.c:412:79: note: Uninitialized variable: buffer mle-debian_1_5_0/editor.c:445:13: error: Uninitialized variables: tmp.editor, tmp.x, tmp.y, tmp.w, tmp.h, tmp.is_resized, tmp.type, tmp.linenum_width, tmp.abs_linenum_width, tmp.rel_linenum_width, tmp.rect_caption, tmp.rect_lines, tmp.rect_margin_left, tmp.rect_buffer, tmp.rect_margin_right, tmp.buffer, tmp.viewport_x, tmp.viewport_x_vcol, tmp.viewport_y, tmp.viewport_mark, tmp.viewport_scope_x, tmp.viewport_scope_y, tmp.split_parent, tmp.split_child, tmp.split_factor, tmp.split_is_vertical, tmp.prompt_str, tmp.path, tmp.startup_linenum, tmp.kmap_stack, tmp.kmap_tail, tmp.cursors, tmp.active_cursor, tmp.last_search, tmp.isearch_rule, tmp.tab_width, tmp.tab_to_space, tmp.soft_wrap, tmp.syntax, tmp.aproc, tmp.menu_callback, tmp.is_menu, tmp.id, tmp.listeners, tmp.top_next, tmp.top_prev, tmp.all_next, tmp.all_prev [uninitvar] mle-debian_1_5_0/editor.c:456:13: error: Uninitialized variable: bview->type [uninitvar] mle-debian_1_5_0/editor.c:467:20: error: Uninitialized variable: bview->buffer [uninitvar] mle-debian_1_5_0/editor.c:535:38: error: Uninitialized variables: bview.editor, bview.x, bview.y, bview.w, bview.h, bview.is_resized, bview.type, bview.linenum_width, bview.abs_linenum_width, bview.rel_linenum_width, bview.rect_caption, bview.rect_lines, bview.rect_margin_left, bview.rect_buffer, bview.rect_margin_right, bview.buffer, bview.viewport_x, bview.viewport_x_vcol, bview.viewport_y, bview.viewport_mark, bview.viewport_scope_x, bview.viewport_scope_y, bview.split_parent, bview.split_child, bview.split_factor, bview.split_is_vertical, bview.prompt_str, bview.path, bview.startup_linenum, bview.kmap_stack, bview.kmap_tail, bview.cursors, bview.active_cursor, bview.last_search, bview.isearch_rule, bview.tab_width, bview.tab_to_space, bview.soft_wrap, bview.syntax, bview.aproc, bview.menu_callback, bview.is_menu, bview.id, bview.listeners, bview.top_next, bview.top_prev, bview.all_next, bview.all_prev [uninitvar] mle-debian_1_5_0/editor.c:529:15: note: Assuming condition is false mle-debian_1_5_0/editor.c:535:38: note: Uninitialized variables: bview.editor, bview.x, bview.y, bview.w, bview.h, bview.is_resized, bview.type, bview.linenum_width, bview.abs_linenum_width, bview.rel_linenum_width, bview.rect_caption, bview.rect_lines, bview.rect_margin_left, bview.rect_buffer, bview.rect_margin_right, bview.buffer, bview.viewport_x, bview.viewport_x_vcol, bview.viewport_y, bview.viewport_mark, bview.viewport_scope_x, bview.viewport_scope_y, bview.split_parent, bview.split_child, bview.split_factor, bview.split_is_vertical, bview.prompt_str, bview.path, bview.startup_linenum, bview.kmap_stack, bview.kmap_tail, bview.cursors, bview.active_cursor, bview.last_search, bview.isearch_rule, bview.tab_width, bview.tab_to_space, bview.soft_wrap, bview.syntax, bview.aproc, bview.menu_callback, bview.is_menu, bview.id, bview.listeners, bview.top_next, bview.top_prev, bview.all_next, bview.all_prev mle-debian_1_5_0/editor.c:970:31: error: Uninitialized variable: observer->event_patt [uninitvar] mle-debian_1_5_0/editor.c:1053:13: error: Uninitialized variable: bview->type [uninitvar] mle-debian_1_5_0/editor.c:1440:20: error: Uninitialized variable: bview->buffer [uninitvar] mle-debian_1_5_0/editor.c:1847:22: error: Uninitialized variable: binding->children [uninitvar] diff: head mle-debian_1_5_0/bview.c:299:58: style: Parameter 'one' can be declared as pointer to const [constParameter] 2.8 mle-debian_1_5_0/bview.c:299:58: style: Parameter 'one' can be declared with const [constParameter] head mle-debian_1_5_0/bview.c:506:46: style: Parameter 'buffer' can be declared as pointer to const [constParameter] 2.8 mle-debian_1_5_0/bview.c:506:46: style: Parameter 'buffer' can be declared with const [constParameter] 2.8 mle-debian_1_5_0/cmd.c:1316:30: error: Uninitialized variable: kmap->name [uninitvar] head mle-debian_1_5_0/cmd.c:1316:30: warning: Uninitialized variable: kmap->name [uninitvar] head mle-debian_1_5_0/editor.c:1157:85: style: Parameter 'input' can be declared as pointer to const [constParameter] 2.8 mle-debian_1_5_0/editor.c:1157:85: style: Parameter 'input' can be declared with const [constParameter] 2.8 mle-debian_1_5_0/editor.c:215:41: error: Uninitialized variables: observer.event_patt, observer.callback, observer.udata, observer.next, observer.prev [uninitvar] head mle-debian_1_5_0/editor.c:215:41: warning: Uninitialized variables: observer.event_patt, observer.callback, observer.udata, observer.next, observer.prev [uninitvar] 2.8 mle-debian_1_5_0/editor.c:412:79: error: Uninitialized variable: buffer [uninitvar] mle-debian_1_5_0/editor.c:398:13: note: Assuming condition is false mle-debian_1_5_0/editor.c:411:23: note: Assignment 'buffer=bview->buffer', assigned value is mle-debian_1_5_0/editor.c:412:79: note: Uninitialized variable: buffer head mle-debian_1_5_0/editor.c:412:79: warning: Uninitialized variable: buffer [uninitvar] mle-debian_1_5_0/editor.c:398:13: note: Assuming condition is false mle-debian_1_5_0/editor.c:411:23: note: Assignment 'buffer=bview->buffer', assigned value is mle-debian_1_5_0/editor.c:412:79: note: Uninitialized variable: buffer head mle-debian_1_5_0/editor.c:442:60: style: Parameter 'bview' can be declared as pointer to const [constParameter] 2.8 mle-debian_1_5_0/editor.c:442:60: style: Parameter 'bview' can be declared with const [constParameter] head mle-debian_1_5_0/editor.c:462:63: style: Parameter 'buffer' can be declared as pointer to const [constParameter] 2.8 mle-debian_1_5_0/editor.c:462:63: style: Parameter 'buffer' can be declared with const [constParameter] head mle-debian_1_5_0/util.c:117:32: style: Condition 'do_read' is always false [knownConditionTrueFalse] mle-debian_1_5_0/util.c:76:13: note: Assuming that condition 'do_read' is not redundant mle-debian_1_5_0/util.c:117:32: note: Condition 'do_read' is always false head mle-debian_1_5_0/util.c:120:9: style: Condition 'do_read' is always false [knownConditionTrueFalse] mle-debian_1_5_0/util.c:76:13: note: Assuming that condition 'do_read' is not redundant mle-debian_1_5_0/util.c:120:9: note: Condition 'do_read' is always false head mle-debian_1_5_0/util.c:456:52: style: Parameter 'data_stop' can be declared as pointer to const [constParameter] 2.8 mle-debian_1_5_0/util.c:456:52: style: Parameter 'data_stop' can be declared with const [constParameter] head mle-debian_1_5_0/util.c:478:53: style: Parameter 'data_stop' can be declared as pointer to const [constParameter] 2.8 mle-debian_1_5_0/util.c:478:53: style: Parameter 'data_stop' can be declared with const [constParameter] head mle-debian_1_5_0/util.c:578:93: style: Parameter 'pcre_ovector' can be declared as pointer to const [constParameter] 2.8 mle-debian_1_5_0/util.c:578:93: style: Parameter 'pcre_ovector' can be declared with const [constParameter] head mle-debian_1_5_0/util.c:76:13: style: Condition 'do_read' is always false [knownConditionTrueFalse] mle-debian_1_5_0/util.c:76:13: note: Assuming that condition 'do_read' is not redundant mle-debian_1_5_0/util.c:76:13: note: Condition 'do_read' is always false DONE