Commit 2d8f0364 authored by Serge Tupchii's avatar Serge Tupchii Committed by Lars Ingebrigtsen

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
parent 1fb099ce
......@@ -6063,6 +6063,7 @@ Erlang_functions (FILE *inf)
free (last);
last = NULL;
allocated = lastlen = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment