]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 63315] Allocate function names when defining functions
authorPaul Smith <psmith@gnu.org>
Sat, 5 Nov 2022 16:56:52 +0000 (12:56 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 13 Nov 2022 15:39:48 +0000 (10:39 -0500)
commite80ce6fc90e1dc5da5c538167ac7ad719bb92b89
tree9c0a9a33f3f370d6c512b94acfa43e5c7a44c2aa
parentd71c0bb0cefd7b38716eac2947bc34f3c750a8b4
[SV 63315] Allocate function names when defining functions

* src/function.c (define_new_function): Don't keep a pointer to the
user-provided name of a user-defined function: if the .so is unloaded
it will point to garbage.  Add the name to the strcache instead.
src/function.c