Skip to content

Commit

Permalink
pvs-report: Automatic update
Browse files Browse the repository at this point in the history
  • Loading branch information
marvim committed Oct 7, 2023
1 parent 7934922 commit 0d3031c
Show file tree
Hide file tree
Showing 14 changed files with 7,836 additions and 119 deletions.
3 changes: 2 additions & 1 deletion reports/pvs/PVS-studio.err
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ pvs-studio.com/en/docs/warnings/:1:1: error: Help: The documentation for all ana
./src/nvim/ex_docmd.c:3145:1: warning: V547 Expression 'name == NULL' is always false.
./src/nvim/ex_getln.c:3104:1: error: V595 The 'colored_ccline->cmdbuff' pointer was utilized before it was verified against nullptr. Check lines: 3104, 3110.
./src/nvim/fileio.c:3335:1: warning: V557 Array overrun is possible. The value of 'strlen(tmp) - strlen(user)' index could reach 18446744073709551615.
./src/nvim/highlight.c:335:1: warning: V547 Expression '!wp->w_ns_hl_attr' is always false.
./src/nvim/help.c:1012:1: error: V781 The value of the 'len' index is checked after it was used. Perhaps there is a mistake in program logic.
./src/nvim/highlight.c:335:1: warning: V547 Expression '!wp->w_ns_hl_attr' is always false.
./src/nvim/insexpand.c:3312:1: warning: V547 Expression 'st.e_cpt_copy == NULL' is always false.
./src/nvim/log.c:183:1: warning: V601 Pointer is implicitly cast to an integer type. Inspect the second argument.
./src/nvim/log.c:286:1: warning: V601 Pointer is implicitly cast to an integer type. Inspect the second argument.
Expand Down Expand Up @@ -85,3 +85,4 @@ pvs-studio.com/en/docs/warnings/:1:1: error: Help: The documentation for all ana
./src/nvim/strings.c:2165:1: warning: V601 Pointer is implicitly cast to an integer type. Inspect the second argument.
./src/nvim/tag.c:481:1: warning: V1048 The 'prevtagstackidx' variable was assigned the same value.
./build/include/mbyte.h.generated.h:33:1: warning: V1071 Consider inspecting the 'utf_char2bytes' function. The return value is not always used. Total calls: 10, discarded results: 1.
./src/nvim/window.c:6952:1: warning: V560 A part of conditional expression is always false: len >= 2.
27 changes: 17 additions & 10 deletions reports/pvs/PVS-studio.html.d/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ <h1>PVS-Studio Analysis Results</h1>
<br class="clear">
</div>
<table cellpadding="0" cellspacing="0" border="0" class="infotopic">
<tr><th id="col_info">Date:</th><td>Fri Oct 6 05:33:55 2023</td></tr>
<tr><th id="col_info">Date:</th><td>Sat Oct 7 05:28:21 2023</td></tr>
<tr><th id="col_info">PVS-Studio Version:</th><td>7.26.73915.332</td></tr>
<tr><th id="col_info">Command Line:</th><td>plog-converter PVS-studio.log --srcRoot . --excludedCodes V002,V011,V1028,V1042,V1051,V1074 --renderTypes fullhtml --output PVS-studio.html.d </td></tr>
<tr><th id="col_info">Total Warnings (GA):</th><td>86</td></tr>
<tr><th id="col_info">Total Warnings (GA):</th><td>87</td></tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" class="sortable" id="sorter">
<tr>
Expand Down Expand Up @@ -441,18 +441,18 @@ <h1>PVS-Studio Analysis Results</h1>
</tr>
<tr>
<td id="col_group">General Analysis</td>
<td id="col_file"><a target="_blank" href="sources/highlight.c_15.html#ln335">highlight.c:335</a></td>
<td id="col_level" style="color:#FFA500"><b>Medium</b></td>
<td id="col_code"><a target="_blank" href="https://pvs-studio.com/en/docs/warnings/v547/">V547</td>
<td id="col_message">Expression '!wp-&gt;w_ns_hl_attr' is always false.</td>
</tr>
<tr>
<td id="col_group">General Analysis</td>
<td id="col_file"><a target="_blank" href="sources/help.c_16.html#ln1012">help.c:1012</a></td>
<td id="col_file"><a target="_blank" href="sources/help.c_15.html#ln1012">help.c:1012</a></td>
<td id="col_level" style="color:#FF0000"><b>High</b></td>
<td id="col_code"><a target="_blank" href="https://pvs-studio.com/en/docs/warnings/v781/">V781</td>
<td id="col_message">The value of the 'len' index is checked after it was used. Perhaps there is a mistake in program logic.</td>
</tr>
<tr>
<td id="col_group">General Analysis</td>
<td id="col_file"><a target="_blank" href="sources/highlight.c_16.html#ln335">highlight.c:335</a></td>
<td id="col_level" style="color:#FFA500"><b>Medium</b></td>
<td id="col_code"><a target="_blank" href="https://pvs-studio.com/en/docs/warnings/v547/">V547</td>
<td id="col_message">Expression '!wp-&gt;w_ns_hl_attr' is always false.</td>
</tr>
<tr>
<td id="col_group">General Analysis</td>
<td id="col_file"><a target="_blank" href="sources/insexpand.c_17.html#ln3312">insexpand.c:3312</a></td>
Expand Down Expand Up @@ -649,3 +649,10 @@ <h1>PVS-Studio Analysis Results</h1>
<td id="col_code"><a target="_blank" href="https://pvs-studio.com/en/docs/warnings/v1071/">V1071</td>
<td id="col_message">Consider inspecting the 'utf_char2bytes' function. The return value is not always used. Total calls: 10, discarded results: 1.</td>
</tr>
<tr>
<td id="col_group">General Analysis</td>
<td id="col_file"><a target="_blank" href="sources/window.c_28.html#ln6952">window.c:6952</a></td>
<td id="col_level" style="color:#FFA500"><b>Medium</b></td>
<td id="col_code"><a target="_blank" href="https://pvs-studio.com/en/docs/warnings/v560/">V560</td>
<td id="col_message">A part of conditional expression is always false: len &gt;= 2.</td>
</tr>
5 changes: 3 additions & 2 deletions reports/pvs/PVS-studio.html.d/sources/drawline.c_7.html
Original file line number Diff line number Diff line change
Expand Up @@ -3339,8 +3339,9 @@
<a name="ln3330"> }</a>
<a name="ln3331"> }</a>
<a name="ln3332"> </a>
<a name="ln3333"> grid_put_linebuf(grid, row, coloff, 0, endcol, clear_width, wp-&gt;w_p_rl, bg_attr, wrap, false);</a>
<a name="ln3334">}</a>
<a name="ln3333"> grid_adjust(&amp;grid, &amp;row, &amp;coloff);</a>
<a name="ln3334"> grid_put_linebuf(grid, row, coloff, 0, endcol, clear_width, wp-&gt;w_p_rl, bg_attr, wrap, false);</a>
<a name="ln3335">}</a>
</code></pre>
<div class="balloon" rel="1858"><p><span style="font-size:18px">&uarr;</span> <a href="https://pvs-studio.com/en/docs/warnings/v560/" target="_blank">V560</a> A part of conditional expression is always true: wlv.n_extra == 0.</p></div>
<link rel="stylesheet" href="highlight.css">
Expand Down
2 changes: 1 addition & 1 deletion reports/pvs/PVS-studio.html.d/sources/eval.c_8.html
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@
<a name="ln1299"> // If the result is a string, check if there is a non-digit before</a>
<a name="ln1300"> // the number.</a>
<a name="ln1301"> char *s = tv.vval.v_string;</a>
<a name="ln1302"> if (!ascii_isdigit(*s) &amp;&amp; *s != '-') {</a>
<a name="ln1302"> if (*s != NUL &amp;&amp; !ascii_isdigit(*s) &amp;&amp; *s != '-') {</a>
<a name="ln1303"> *cp = (uint8_t)(*s++);</a>
<a name="ln1304"> }</a>
<a name="ln1305"> retval = atol(s);</a>
Expand Down
18 changes: 9 additions & 9 deletions reports/pvs/PVS-studio.html.d/sources/message.c_21.html
Original file line number Diff line number Diff line change
Expand Up @@ -2968,15 +2968,15 @@
<a name="ln2959"> </a>
<a name="ln2960">void msg_moremsg(int full)</a>
<a name="ln2961">{</a>
<a name="ln2962"> int attr;</a>
<a name="ln2963"> char *s = _(&quot;-- More --&quot;);</a>
<a name="ln2964"> </a>
<a name="ln2965"> attr = hl_combine_attr(HL_ATTR(HLF_MSG), HL_ATTR(HLF_M));</a>
<a name="ln2966"> grid_puts(&amp;msg_grid_adj, s, -1, Rows - 1, 0, attr);</a>
<a name="ln2967"> if (full) {</a>
<a name="ln2968"> grid_puts(&amp;msg_grid_adj, _(&quot; SPACE/d/j: screen/page/line down, b/u/k: up, q: quit &quot;), -1,</a>
<a name="ln2969"> Rows - 1, vim_strsize(s), attr);</a>
<a name="ln2970"> }</a>
<a name="ln2962"> int attr = hl_combine_attr(HL_ATTR(HLF_MSG), HL_ATTR(HLF_M));</a>
<a name="ln2963"> grid_line_start(&amp;msg_grid_adj, Rows - 1);</a>
<a name="ln2964"> int len = grid_line_puts(0, _(&quot;-- More --&quot;), -1, attr);</a>
<a name="ln2965"> if (full) {</a>
<a name="ln2966"> len += grid_line_puts(len, _(&quot; SPACE/d/j: screen/page/line down, b/u/k: up, q: quit &quot;),</a>
<a name="ln2967"> -1, attr);</a>
<a name="ln2968"> }</a>
<a name="ln2969"> grid_line_cursor_goto(len);</a>
<a name="ln2970"> grid_line_flush();</a>
<a name="ln2971">}</a>
<a name="ln2972"> </a>
<a name="ln2973">/// Repeat the message for the current mode: MODE_ASKMORE, MODE_EXTERNCMD,</a>
Expand Down
2 changes: 1 addition & 1 deletion reports/pvs/PVS-studio.html.d/sources/strings.c_25.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<a name="ln46">static const char e_invalid_format_specifier_str[]</a>
<a name="ln47"> = N_(&quot;E1505: Invalid format specifier: %s&quot;);</a>
<a name="ln48">static const char e_aptypes_is_null_nr_str[]</a>
<a name="ln49"> = &quot;E1520: Internal error: ap_types or ap_types[idx] is NULL: %d: %s&quot;;</a>
<a name="ln49"> = &quot;E1507: Internal error: ap_types or ap_types[idx] is NULL: %d: %s&quot;;</a>
<a name="ln50"> </a>
<a name="ln51">static const char typename_unknown[] = N_(&quot;unknown&quot;);</a>
<a name="ln52">static const char typename_int[] = N_(&quot;int&quot;);</a>
Expand Down
Loading

0 comments on commit 0d3031c

Please sign in to comment.