diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-01-02 15:14:31 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-01-03 04:05:04 +0100 |
| commit | 88916d069c11453602ead8f60e26f0056173f745 (patch) | |
| tree | 6147403f0fc35e7dd6d3069fd5627814f5bd22e9 | |
| parent | fc3c38266f9ad4c9a7f3455d8e82a2155c4b32d3 (diff) | |
| download | sparse-dev-88916d069c11453602ead8f60e26f0056173f745.tar.gz | |
ctags: avoid null deref
Protect the dereference of null base_type.
Reported-by: foobar <foobar@redchan.it>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
| -rw-r--r-- | ctags.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -135,7 +135,7 @@ static void examine_symbol(struct symbol *sym) switch (sym->type) { case SYM_NODE: - if (base->type == SYM_FN) + if (base && base->type == SYM_FN) sym->kind = 'f'; examine_symbol(base); break; |
