projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0b3e38
)
Fix crash (segfault) in etags on generating tags for Erlang files
author
Serge Tupchii
<serge.tupchii@protonmail.com>
Tue, 8 Dec 2020 20:22:34 +0000
(21:22 +0100)
committer
Eli Zaretskii
<eliz@gnu.org>
Wed, 9 Dec 2020 15:06:33 +0000
(17:06 +0200)
* 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
2d8f0364fcd1d5dad2b82dd3a9af870b03854547
)
lib-src/etags.c
patch
|
blob
|
history
diff --git
a/lib-src/etags.c
b/lib-src/etags.c
index f761a7b7c33eef6e4b6d350162b5a5d235bb0953..502f90920d29167b5ac6491cfa2c6c3e76ebeac3 100644
(file)
--- a/
lib-src/etags.c
+++ b/
lib-src/etags.c
@@
-6062,6
+6062,7
@@
Erlang_functions (FILE *inf)
{
free (last);
last = NULL;
+ allocated = lastlen = 0;
}
}
else