summaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-12-07 12:23:57 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-07 12:23:57 +0000
commit4dc24eb5adbcc76838fae1e900936dd230209d96 (patch)
tree79f8deb9ac0294b4cbc228cbde0180ce205964c7 /src/tag.c
parent92c33eb2735045d25fceed3b607f44d7156c59c1 (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tag.c b/src/tag.c
index f932934769..41d21b7514 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -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;