diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-11 01:32:41 +0100 | 
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-11 10:45:16 +0100 | 
| commit | 18d244eded434e6bc47b351ef00088378883bf1d (patch) | |
| tree | 30864191da4a74960fe8542025639cbc7ecaf487 /runtime/syntax/taskedit.vim | |
| parent | 911b1e49abb88a533711ce55376d2893d6424d29 (diff) | |
| download | rneovim-18d244eded434e6bc47b351ef00088378883bf1d.tar.gz rneovim-18d244eded434e6bc47b351ef00088378883bf1d.tar.bz2 rneovim-18d244eded434e6bc47b351ef00088378883bf1d.zip | |
coverity/169163: decode_string: Null pointer deref
    *** CID 169163:  Null pointer dereferences  (FORWARD_NULL)
    /src/nvim/eval/decode.c: 290 in decode_string()
    284         if (elw_ret == -1) {
    285           tv_clear(&tv);
    286           return (typval_T) { .v_type = VAR_UNKNOWN, .v_lock = VAR_UNLOCKED };
    287         }
    288         return tv;
    289       } else {
    >>>     CID 169163:  Null pointer dereferences  (FORWARD_NULL)
    >>>     Passing null pointer "s" to "xmemdupz", which dereferences it. (The dereference is assumed on the basis of the 'nonnull' parameter attribute.)
    290         return (typval_T) {
    291           .v_type = VAR_STRING,
    292           .v_lock = VAR_UNLOCKED,
    293           .vval = { .v_string = (char_u *)(
    294               s_allocated ? (char *)s : xmemdupz(s, len)) },
    295         };
Diffstat (limited to 'runtime/syntax/taskedit.vim')
0 files changed, 0 insertions, 0 deletions
