Patch 9.0.0997

3 views
Skip to first unread message

Bram Moolenaar

unread,
Dec 3, 2022, 5:14:27 AM12/3/22
to vim...@googlegroups.com

Patch 9.0.0997
Problem: Coverity warns for dead code.
Solution: Don't use ASCII_ISUPPER() for a negative value.
Files: src/term.c


*** ../vim-9.0.0996/src/term.c 2022-12-03 00:00:32.345735603 +0000
--- src/term.c 2022-12-03 10:11:34.951098438 +0000
***************
*** 5296,5302 ****
if (!VIM_ISDIGIT(*ap))
first = *ap++;

! if (ASCII_ISUPPER(first))
{
// If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and
// no argument follows.
--- 5296,5302 ----
if (!VIM_ISDIGIT(*ap))
first = *ap++;

! if (first >= 'A' && first <= 'Z')
{
// If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and
// no argument follows.
*** ../vim-9.0.0996/src/version.c 2022-12-03 00:00:32.345735603 +0000
--- src/version.c 2022-12-03 10:12:18.367040348 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 997,
/**/

--
I noticed my daughter's Disney-net password on a sticky note:
"MickeyMinnieGoofyPluto". I asked her why it was so long.
"Because they say it has to have at least four characters."

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages