diff options
author | oni-link <knil.ino@gmail.com> | 2015-06-07 12:04:13 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-06-12 00:04:36 -0400 |
commit | e53dda90bdb66c78978f75a1eb209f7b601a74f0 (patch) | |
tree | 823fe24d6a039431c406324ec81f22700b736d7c /src/nvim/regexp.c | |
parent | be66c0b3570a55671656959203bd5b824f77fde7 (diff) | |
download | rneovim-e53dda90bdb66c78978f75a1eb209f7b601a74f0.tar.gz rneovim-e53dda90bdb66c78978f75a1eb209f7b601a74f0.tar.bz2 rneovim-e53dda90bdb66c78978f75a1eb209f7b601a74f0.zip |
memline: Don't call memmove() with a NULL argument in ml_add_stack(). #2802
When ml_add_stack() needs to increase the size of the empty stack,
buf->b_ml.ml_stack is NULL and is used as argument in memmove().
This is undefined behaviour. Declaration of memmove() in string.h:
extern void *memmove (void *__dest, const void *__src, size_t __n)
__THROW __nonnull ((1, 2));
Diffstat (limited to 'src/nvim/regexp.c')
0 files changed, 0 insertions, 0 deletions