• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision794bf2be08bea52e09d3d0ffb55070152ae1d4c4 (tree)
Time2020-06-30 05:45:07
AuthorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 8.2.1090: may use NULL pointer when skipping over name

Commit: https://github.com/vim/vim/commit/9b5384b97e832958573ffdcd3c1e230635b434e4
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 29 22:31:36 2020 +0200

patch 8.2.1090: may use NULL pointer when skipping over name
Problem: May use NULL pointer when skipping over name.
Solution: Always set ll_name_end.

Change Summary

Incremental Difference

diff -r 5897e4fcbf3b -r 794bf2be08be src/eval.c
--- a/src/eval.c Mon Jun 29 22:30:04 2020 +0200
+++ b/src/eval.c Mon Jun 29 22:45:07 2020 +0200
@@ -734,7 +734,9 @@
734734 {
735735 // When skipping just find the end of the name.
736736 lp->ll_name = name;
737- return find_name_end(name, NULL, NULL, FNE_INCL_BR | fne_flags);
737+ lp->ll_name_end = find_name_end(name, NULL, NULL,
738+ FNE_INCL_BR | fne_flags);
739+ return lp->ll_name_end;
738740 }
739741
740742 // Find the end of the name.
diff -r 5897e4fcbf3b -r 794bf2be08be src/version.c
--- a/src/version.c Mon Jun 29 22:30:04 2020 +0200
+++ b/src/version.c Mon Jun 29 22:45:07 2020 +0200
@@ -755,6 +755,8 @@
755755 static int included_patches[] =
756756 { /* Add new patch number below this line */
757757 /**/
758+ 1090,
759+/**/
758760 1089,
759761 /**/
760762 1088,
Show on old repository browser