Patch 8.2.0143

9 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 23, 2020, 9:49:18 AM1/23/20
to vim...@googlegroups.com

Patch 8.2.0143
Problem: Coverity warning for possible use of NULL pointer.
Solution: Check argv is not NULL.
Files: src/channel.c


*** ../vim-8.2.0142/src/channel.c 2020-01-20 21:59:35.703653287 +0100
--- src/channel.c 2020-01-23 15:47:25.061894890 +0100
***************
*** 5993,5999 ****
#ifndef USE_ARGV
vim_free(ga.ga_data);
#endif
! if (argv != job->jv_argv)
{
for (i = 0; argv[i] != NULL; i++)
vim_free(argv[i]);
--- 5993,5999 ----
#ifndef USE_ARGV
vim_free(ga.ga_data);
#endif
! if (argv != NULL && argv != job->jv_argv)
{
for (i = 0; argv[i] != NULL; i++)
vim_free(argv[i]);
*** ../vim-8.2.0142/src/version.c 2020-01-23 15:33:31.526017874 +0100
--- src/version.c 2020-01-23 15:48:23.565621042 +0100
***************
*** 744,745 ****
--- 744,747 ----
{ /* Add new patch number below this line */
+ /**/
+ 143,
/**/

--
BEDEVERE: Why do you think she is a witch?
SECOND VILLAGER: She turned me into a newt.
BEDEVERE: A newt?
SECOND VILLAGER: (After looking at himself for some time) I got better.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

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