]> git.eshelyaron.com Git - emacs.git/commit
Fix some unsafe uses of SSDATA in comp.c
authorEli Zaretskii <eliz@gnu.org>
Fri, 5 Mar 2021 14:39:10 +0000 (16:39 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 5 Mar 2021 14:41:41 +0000 (16:41 +0200)
commit552ef6d6c0733b864bcb14eeb6183d7e64df3b80
tree79667bd927ef29a8268b8644a68b671214151b55
parent260617ddc2e8e46a741e6843f97c7ffbc5222ed0
Fix some unsafe uses of SSDATA in comp.c

* src/comp.c (comp_hash_source_file)
(Fcomp__compile_ctxt_to_file, Fnative_elisp_load): Encode file
names before passing them to library APIs.
(Fcomp__compile_ctxt_to_file): use emacs_fopen instead of fopen.
(declare_lex_function): Avoid keeping a 'char *' pointer around
while calling Lisp, which could trigger GC, which could relocate
string data.
src/comp.c