PVS-Studio Analysis Results


Date:Sat Jun 15 20:23:43 2019
PVS-Studio Version:7.02.31917.1198
Command Line:plog-converter PVS-studio.log --srcRoot . --excludedCodes V011 --renderTypes fullhtml --output PVS-studio.html.d
Total Warnings (GA):59
Group Location Level Code Message
General Analysis stddef.h:62 Medium V677 Custom declaration of a standard 'size_t' type. The declaration from system header files should be used instead.
General Analysis stddef.h:90 Medium V677 Custom declaration of a standard 'wchar_t' type. The declaration from system header files should be used instead.
General Analysis stddef.h:51 Medium V677 Custom declaration of a standard 'ptrdiff_t' type. The declaration from system header files should be used instead.
General Analysis stdarg.h:30 Medium V677 Custom declaration of a standard 'va_list' type. The declaration from system header files should be used instead.
General Analysis stddef.h:132 Medium V677 Custom declaration of a standard 'wint_t' type. The declaration from system header files should be used instead.
General Analysis eval.c:15735 Medium V547 Expression 'sign_group == NULL' is always false.
General Analysis eval.c:15786 Medium V547 Expression 'group == NULL' is always false.
General Analysis eval.c:15881 Medium V547 Expression 'group == NULL' is always false.
General Analysis typval_encode.c.h:385 Medium V1037 Two or more case-branches perform the same actions. Check lines: 385, 390
General Analysis ex_docmd.c:1160 Medium V1037 Two or more case-branches perform the same actions. Check lines: 1160, 1196
General Analysis ex_docmd.c:8459 Medium V1037 Two or more case-branches perform the same actions. Check lines: 8459, 8461
General Analysis fileio.c:1402 Medium V1026 The 'u8c' variable is incremented in the loop. Undefined behavior will occur in case of signed integer overflow.
General Analysis fileio.c:1408 Medium V1026 The 'u8c' variable is incremented in the loop. Undefined behavior will occur in case of signed integer overflow.
General Analysis fileio.c:1409 Medium V1026 The 'u8c' variable is incremented in the loop. Undefined behavior will occur in case of signed integer overflow.
General Analysis fileio.c:4306 Medium V560 A part of conditional expression is always false: buf->b_fname == NULL.
General Analysis getchar.c:908 High V1028 Possible overflow. Consider casting operands of the 'typebuf.tb_len - offset + 1' operator to the 'size_t' type, not the result.
General Analysis getchar.c:1059 High V1028 Possible overflow. Consider casting operands of the 'typebuf.tb_len - offset + 1' operator to the 'size_t' type, not the result.
General Analysis getchar.c:4093 Medium V560 A part of conditional expression is always false: mp->m_noremap == REMAP_SCRIPT.
General Analysis misc1.c:498 High V1028 Possible overflow. Consider casting operands, not the result.
General Analysis misc1.c:1559 High V1028 Possible overflow. Consider casting operands of the 'oldlen + newlen + 1' operator to the 'size_t' type, not the result.
General Analysis misc1.c:1563 High V1028 Possible overflow. Consider casting operands of the 'oldlen - col + 1' operator to the 'size_t' type, not the result.
General Analysis helpers.c:388 Medium V1037 Two or more case-branches perform the same actions. Check lines: 388, 395
General Analysis ops.c:382 High V1028 Possible overflow. Consider casting operands of the 'bd.textcol + i + j + len' operator to the 'size_t' type, not the result.
General Analysis ops.c:383 High V1028 Possible overflow. Consider casting operands of the 'bd.textcol + i + j + len' operator to the 'size_t' type, not the result.
General Analysis ops.c:1474 High V1028 Possible overflow. Consider casting operands of the 'bd.startspaces + bd.endspaces' operator to the 'size_t' type, not the result.
General Analysis ops.c:1733 High V1028 Possible overflow. Consider casting operands of the 'bd.textcol + bd.startspaces' operator to the 'size_t' type, not the result.
General Analysis ops.c:1762 High V1028 Possible overflow. Consider casting operands, not the result.
General Analysis ops.c:1766 High V1028 Possible overflow. Consider casting operands, not the result.
General Analysis ops.c:2594 High V1028 Possible overflow. Consider casting operands, not the result.
General Analysis ops.c:3078 High V1028 Possible overflow. Consider casting operands, not the result.
General Analysis ops.c:3201 High V1028 Possible overflow. Consider casting operands of the 'col + yanklen + 1' operator to the 'size_t' type, not the result.
General Analysis ops.c:3205 High V1028 Possible overflow. Consider casting operands of the 'yanklen + 1' operator to the 'size_t' type, not the result.
General Analysis ops.c:3425 Medium V1019 Compound assignment expression 'n -= ptr2cells(p)' is used inside condition.
General Analysis ops.c:3701 High V1028 Possible overflow. Consider casting operands of the 'sumsize + 1' operator to the 'size_t' type, not the result.
General Analysis ops.c:5464 High V1028 Possible overflow. Consider casting operands of the 'curwin->w_cursor.col + 1' operator to the 'varnumber_T' type, not the result.
General Analysis ops.c:5483 High V1028 Possible overflow. Consider casting operands, not the result.
General Analysis option.c:3572 Medium V519 The 'c1' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 3567, 3572.
General Analysis quickfix.c:1329 Medium V560 A part of conditional expression is always true: !qfl->qf_multiignore.
General Analysis quickfix.c:2232 Medium V560 A part of conditional expression is always false: old_qf_curlist != qi->qf_curlist.
General Analysis regexp.c:4319 Medium V560 A part of conditional expression is always true: status != 1.
General Analysis regexp_nfa.c:1300 Medium V1037 Two or more case-branches perform the same actions. Check lines: 1300, 1310
General Analysis screen.c:3760 High V547 Expression 'c == '\000'' is always true.
General Analysis screen.c:3788 Medium V560 A part of conditional expression is always true: c == '\000'.
General Analysis screen.c:4015 Medium V560 A part of conditional expression is always true: wp->w_onebuf_opt.wo_list.
General Analysis screen.c:6062 High V1028 Possible overflow. Consider casting operands of the '(rows + 1) * columns' operator to the 'size_t' type, not the result.
General Analysis search.c:873 Medium V560 A part of conditional expression is always true: timed_out.
General Analysis search.c:1142 Medium V507 Pointer to local array 'off_buf' is stored outside the scope of this array. Such a pointer will become invalid.
General Analysis search.c:1218 High V590 Consider inspecting the '* r != '\000' && * r == ' '' expression. The expression is excessive or contains a misprint.
General Analysis sign.c:88 Medium V547 Expression 'group == NULL' is always false.
General Analysis sign.c:191 Medium V547 Expression 'newsign->group == NULL' is always false.
General Analysis sign.c:268 Medium V547 Expression '(d = tv_dict_alloc()) == NULL' is always false.
General Analysis sign.c:1361 Medium V547 Expression '(dict = tv_dict_alloc()) == NULL' is always false.
General Analysis sign.c:1382 Medium V547 Expression '(d = sign_get_info(sign)) != NULL' is always true.
General Analysis sign.c:1402 Medium V547 Expression '(d = tv_dict_alloc()) == NULL' is always false.
General Analysis sign.c:1409 Medium V547 Expression is always false.
General Analysis sign.c:1422 Medium V547 Expression '(sdict = sign_get_info(sign)) != NULL' is always true.
General Analysis spell.c:4503 Medium V560 A part of conditional expression is always true: c2 != '\000'.
General Analysis spell.c:5286 High V1028 Possible overflow. Consider casting operands of the 'sfwordnr + 1' operator to the 'linenr_T' type, not the result.
General Analysis ugrid.c:76 High V1028 Possible overflow. Consider casting operands of the 'right - left + 1' operator to the 'size_t' type, not the result.