Mercurial > vim
comparison src/tag.c @ 26452:65b4109a4297 v8.2.3756
patch 8.2.3756: might crash when callback is not valid
Commit: https://github.com/vim/vim/commit/4dc24eb5adbcc76838fae1e900936dd230209d96
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue Dec 7 12:23:57 2021 +0000
patch 8.2.3756: might crash when callback is not valid
Problem: might crash when callback is not valid.
Solution: Check for valid callback. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/9293)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 07 Dec 2021 13:30:05 +0100 |
parents | ef0c07cbf53f |
children | 08e3eee541ac |
comparison
equal
deleted
inserted
replaced
26451:27720705109b | 26452:65b4109a4297 |
---|---|
1359 typval_T rettv; | 1359 typval_T rettv; |
1360 char_u flagString[4]; | 1360 char_u flagString[4]; |
1361 dict_T *d; | 1361 dict_T *d; |
1362 taggy_T *tag = &curwin->w_tagstack[curwin->w_tagstackidx]; | 1362 taggy_T *tag = &curwin->w_tagstack[curwin->w_tagstackidx]; |
1363 | 1363 |
1364 if (*curbuf->b_p_tfu == NUL) | 1364 if (*curbuf->b_p_tfu == NUL || curbuf->b_tfu_cb.cb_name == NULL |
1365 || *curbuf->b_tfu_cb.cb_name == NUL) | |
1365 return FAIL; | 1366 return FAIL; |
1366 | 1367 |
1367 args[0].v_type = VAR_STRING; | 1368 args[0].v_type = VAR_STRING; |
1368 args[0].vval.v_string = pat; | 1369 args[0].vval.v_string = pat; |
1369 args[1].v_type = VAR_STRING; | 1370 args[1].v_type = VAR_STRING; |