|
Karsten Hopp |
24213e |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
24213e |
Subject: Patch 7.4.812
|
|
Karsten Hopp |
24213e |
Fcc: outbox
|
|
Karsten Hopp |
24213e |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
24213e |
Mime-Version: 1.0
|
|
Karsten Hopp |
24213e |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
24213e |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
24213e |
------------
|
|
Karsten Hopp |
24213e |
|
|
Karsten Hopp |
24213e |
Patch 7.4.812
|
|
Karsten Hopp |
24213e |
Problem: Gcc sanitizer complains about using a NULL pointer to memmove().
|
|
Karsten Hopp |
24213e |
Solution: Only call memmove when there is something to move. (Vittorio
|
|
Karsten Hopp |
24213e |
Zecca)
|
|
Karsten Hopp |
24213e |
Files: src/memline.c
|
|
Karsten Hopp |
24213e |
|
|
Karsten Hopp |
24213e |
|
|
Karsten Hopp |
24213e |
*** ../vim-7.4.811/src/memline.c 2015-07-17 14:16:49.846596759 +0200
|
|
Karsten Hopp |
24213e |
--- src/memline.c 2015-08-08 14:14:21.129601118 +0200
|
|
Karsten Hopp |
24213e |
***************
|
|
Karsten Hopp |
24213e |
*** 3834,3840 ****
|
|
Karsten Hopp |
24213e |
(buf->b_ml.ml_stack_size + STACK_INCR));
|
|
Karsten Hopp |
24213e |
if (newstack == NULL)
|
|
Karsten Hopp |
24213e |
return -1;
|
|
Karsten Hopp |
24213e |
! mch_memmove(newstack, buf->b_ml.ml_stack,
|
|
Karsten Hopp |
24213e |
(size_t)top * sizeof(infoptr_T));
|
|
Karsten Hopp |
24213e |
vim_free(buf->b_ml.ml_stack);
|
|
Karsten Hopp |
24213e |
buf->b_ml.ml_stack = newstack;
|
|
Karsten Hopp |
24213e |
--- 3834,3841 ----
|
|
Karsten Hopp |
24213e |
(buf->b_ml.ml_stack_size + STACK_INCR));
|
|
Karsten Hopp |
24213e |
if (newstack == NULL)
|
|
Karsten Hopp |
24213e |
return -1;
|
|
Karsten Hopp |
24213e |
! if (top > 0)
|
|
Karsten Hopp |
24213e |
! mch_memmove(newstack, buf->b_ml.ml_stack,
|
|
Karsten Hopp |
24213e |
(size_t)top * sizeof(infoptr_T));
|
|
Karsten Hopp |
24213e |
vim_free(buf->b_ml.ml_stack);
|
|
Karsten Hopp |
24213e |
buf->b_ml.ml_stack = newstack;
|
|
Karsten Hopp |
24213e |
*** ../vim-7.4.811/src/version.c 2015-08-04 22:02:45.215119715 +0200
|
|
Karsten Hopp |
24213e |
--- src/version.c 2015-08-08 18:23:30.167691718 +0200
|
|
Karsten Hopp |
24213e |
***************
|
|
Karsten Hopp |
24213e |
*** 743,744 ****
|
|
Karsten Hopp |
24213e |
--- 743,746 ----
|
|
Karsten Hopp |
24213e |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
24213e |
+ /**/
|
|
Karsten Hopp |
24213e |
+ 812,
|
|
Karsten Hopp |
24213e |
/**/
|
|
Karsten Hopp |
24213e |
|
|
Karsten Hopp |
24213e |
--
|
|
Karsten Hopp |
24213e |
DEAD PERSON: I'm getting better!
|
|
Karsten Hopp |
24213e |
CUSTOMER: No, you're not -- you'll be stone dead in a moment.
|
|
Karsten Hopp |
24213e |
MORTICIAN: Oh, I can't take him like that -- it's against regulations.
|
|
Karsten Hopp |
24213e |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
24213e |
|
|
Karsten Hopp |
24213e |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
24213e |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
24213e |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
24213e |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|