]> git.eshelyaron.com Git - emacs.git/commit
Backport: Fix subtle bug when checking liveness of module values.
authorPhilipp Stephani <phst@google.com>
Sat, 25 Jul 2020 21:04:05 +0000 (23:04 +0200)
committerPhilipp Stephani <phst@google.com>
Fri, 31 Jul 2020 16:18:27 +0000 (18:18 +0200)
commit8c94ca94dc2772e5c651de6cf46bfffc388234d5
tree2ebdcfd487f06afd5aa3b66102b18b2f3f7cd9ac
parent8ecca2f09f6bc387412f258c4fc4e3ddf807b2b3
Backport: Fix subtle bug when checking liveness of module values.

We can't simply look up the Lisp object in the global reference table
because an invalid local and a valid global reference might refer to
the same object.  Instead, we have to test the address of the global
reference against the stored references.

* src/emacs-module.c (module_global_reference_p): New helper function.
(value_to_lisp): Use it.

(cherry picked from commit 6355a3ec62f43c9b99d483982ff851d32dd78891)
src/emacs-module.c