Fix crash (segfault) in etags on generating tags for Erlang files
* lib-src/etags.c: Set allocated and lastlen to zero, after
freeing last ptr in Erlang_functions to prevent dereferencing NULL
pointer (bug#45122).
Copyright-paperwork-exempt: yes
(cherry picked from commit 2d8f0364fc
)
This commit is contained in:
parent
c0b3e38d7c
commit
809b22d18d
1 changed files with 1 additions and 0 deletions
|
@ -6062,6 +6062,7 @@ Erlang_functions (FILE *inf)
|
||||||
{
|
{
|
||||||
free (last);
|
free (last);
|
||||||
last = NULL;
|
last = NULL;
|
||||||
|
allocated = lastlen = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue