diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2023-04-21 11:07:56 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2023-04-21 12:14:48 +0200 |
commit | 9802de933484cc0a69ee328f3e4e6efbb83c308e (patch) | |
tree | f966ef38fafa0e18f55b7a573a18eb59fbd9616d /runtime/lua/vim/shared.lua | |
parent | 2819718873a38c68cca0295f59186444d8534e06 (diff) | |
download | rneovim-9802de933484cc0a69ee328f3e4e6efbb83c308e.tar.gz rneovim-9802de933484cc0a69ee328f3e4e6efbb83c308e.tar.bz2 rneovim-9802de933484cc0a69ee328f3e4e6efbb83c308e.zip |
fix(userfunc): fix possible out of bound access
In file included from /usr/include/string.h:535,
from gsrc/nvim/eval/userfunc.c:11:
In function ‘strcpy’,
inlined from ‘cat_func_name’ at gsrc/nvim/eval/userfunc.c:662:5,
inlined from ‘get_user_func_name’ at gsrc/nvim/eval/userfunc.c:2854:5:
/usr/include/bits/string_fortified.h:79:10: warning: ‘__builtin___strcpy_chk’ offset 0 from the object at ‘<unknown>’ is out of the bounds of referenced subobject ‘uf_name’ with ty
pe ‘char[]’ at offset 0 [-Warray-bounds=]
79 | return __builtin___strcpy_chk (__dest, __src, __glibc_objsize (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from gsrc/nvim/eval/typval.h:10,
from gsrc/nvim/buffer_defs.h:20,
from gsrc/nvim/autocmd.h:8,
from gsrc/nvim/eval/userfunc.c:15:
gsrc/nvim/eval/typval_defs.h: In function ‘get_user_func_name’:
gsrc/nvim/eval/typval_defs.h:342:8: note: subobject ‘uf_name’ declared here
342 | char uf_name[]; ///< Name of function (actual size equals name);
| ^~~~~~~
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions