diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-12-07 12:23:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-07 12:23:57 +0000 |
commit | 4dc24eb5adbcc76838fae1e900936dd230209d96 (patch) | |
tree | 79f8deb9ac0294b4cbc228cbde0180ce205964c7 /src/tag.c | |
parent | 92c33eb2735045d25fceed3b607f44d7156c59c1 (diff) |
patch 8.2.3756: might crash when callback is not validv8.2.3756
Problem: might crash when callback is not valid.
Solution: Check for valid callback. (Yegappan Lakshmanan, closes #9293)
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1361,7 +1361,8 @@ find_tagfunc_tags( dict_T *d; taggy_T *tag = &curwin->w_tagstack[curwin->w_tagstackidx]; - if (*curbuf->b_p_tfu == NUL) + if (*curbuf->b_p_tfu == NUL || curbuf->b_tfu_cb.cb_name == NULL + || *curbuf->b_tfu_cb.cb_name == NUL) return FAIL; args[0].v_type = VAR_STRING; |