diff options
Diffstat (limited to 'data/vim/patches/8.1.1022')
-rw-r--r-- | data/vim/patches/8.1.1022 | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/data/vim/patches/8.1.1022 b/data/vim/patches/8.1.1022 new file mode 100644 index 000000000..7881d096b --- /dev/null +++ b/data/vim/patches/8.1.1022 @@ -0,0 +1,46 @@ +To: vim_dev@googlegroups.com +Subject: Patch 8.1.1022 +Fcc: outbox +From: Bram Moolenaar <Bram@moolenaar.net> +Mime-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +------------ + +Patch 8.1.1022 +Problem: May use NULL pointer when out of memory. (Coverity) +Solution: Check for blob_alloc() returning NULL. +Files: src/blob.c + + +*** ../vim-8.1.1021/src/blob.c 2019-01-24 12:31:40.752926550 +0100 +--- src/blob.c 2019-03-19 22:52:20.432751553 +0100 +*************** +*** 232,237 **** +--- 232,239 ---- + blob_T *blob = blob_alloc(); + char_u *s = str; + ++ if (blob == NULL) ++ return NULL; + if (s[0] != '0' || (s[1] != 'z' && s[1] != 'Z')) + goto failed; + s += 2; +*** ../vim-8.1.1021/src/version.c 2019-03-19 22:22:51.807819390 +0100 +--- src/version.c 2019-03-19 22:52:59.520428452 +0100 +*************** +*** 781,782 **** +--- 781,784 ---- + { /* Add new patch number below this line */ ++ /**/ ++ 1022, + /**/ + +-- +From "know your smileys": + :q vi user saying, "How do I get out of this damn emacs editor?" + + /// Bram Moolenaar -- Bram@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 /// |