Problem: Gcc sanitizer complains about using a NULL pointer to memmove().
Solution: Only call memmove when there is something to move. (Vittorio
Zecca)
(buf->b_ml.ml_stack_size + STACK_INCR));
if (newstack == NULL)
return -1;
- mch_memmove(newstack, buf->b_ml.ml_stack,
+ if (top > 0)
+ mch_memmove(newstack, buf->b_ml.ml_stack,
(size_t)top * sizeof(infoptr_T));
vim_free(buf->b_ml.ml_stack);
buf->b_ml.ml_stack = newstack;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 812,
/**/
811,
/**/