Commit 809b22d1 authored by Serge Tupchii's avatar Serge Tupchii Committed by Eli Zaretskii

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 2d8f0364)
parent c0b3e38d
Pipeline #8095 failed with stage
in 30 seconds
......@@ -6062,6 +6062,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