diff options
author | James McCoy <jamessan@jamessan.com> | 2016-11-28 19:30:38 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-11-28 19:32:39 -0500 |
commit | 80b808dbfeb14968561b6bbd2abdc77b522f262c (patch) | |
tree | 05bb08eba79569d3bcb621c93902f3fe1290abb2 /src/nvim/msgpack_rpc/helpers.c | |
parent | 39bb43c5302310081bba1e987e1fcecf74ca6c14 (diff) | |
download | rneovim-80b808dbfeb14968561b6bbd2abdc77b522f262c.tar.gz rneovim-80b808dbfeb14968561b6bbd2abdc77b522f262c.tar.bz2 rneovim-80b808dbfeb14968561b6bbd2abdc77b522f262c.zip |
rbuffer: Use xcalloc to ensure memory is initialized
Since the rbuffer contents are used by string functions (like sscan,
strlen, etc.), it is not safe to use uninitialized memory. Using
xcalloc ensures the string-based functions do not run past the end of
the buffer.
Closes #5676
Diffstat (limited to 'src/nvim/msgpack_rpc/helpers.c')
0 files changed, 0 insertions, 0 deletions