Patch 8.2.3014
Problem: Coverity warns for freeing static string.
Solution: Do not assign static string to pointer. (Dominique Pellé,
closes #8397)
Files: src/vim9execute.c
*** ../vim-8.2.3013/src/vim9execute.c 2021-06-16 22:24:37.282477710 +0200
--- src/vim9execute.c 2021-06-17 13:53:18.483562906 +0200
***************
*** 1469,1478 ****
}
else
line = ((char_u **)ufunc->uf_lines.ga_data)[iptr->isn_lnum - 1];
- if (line == NULL)
- line = (char_u *)"[empty]";
! do_debug(line);
debug_context = NULL;
if (end_lnum > iptr->isn_lnum)
--- 1469,1476 ----
}
else
line = ((char_u **)ufunc->uf_lines.ga_data)[iptr->isn_lnum - 1];
! do_debug(line == NULL ? (char_u *)"[empty]" : line);
debug_context = NULL;
if (end_lnum > iptr->isn_lnum)
*** ../vim-8.2.3013/src/version.c 2021-06-16 22:24:37.282477710 +0200
--- src/version.c 2021-06-17 13:53:25.023545797 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 3014,
/**/
--
A)bort, R)etry, D)o it right this time
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202106171154.15HBsW321619239%40masaka.moolenaar.net.