]> git.eshelyaron.com Git - emacs.git/commit
Copy suffixes passed to 'openp' to avoid GC crashes. Fixes bug#41755
authorNicolás Bértolo <nicolasbertolo@gmail.com>
Tue, 9 Jun 2020 01:01:25 +0000 (22:01 -0300)
committerAndrea Corallo <andrea.corallo@arm.com>
Wed, 10 Jun 2020 11:46:46 +0000 (13:46 +0200)
commit10933f235fa2f1d7a3936da173cdd6e807bff57f
tree07f651aea45fc84ce05ae649bdf4859df5614f1e
parent4d1cfd0997c05de4abc5d2f96c17b1c5a02982d6
Copy suffixes passed to 'openp' to avoid GC crashes. Fixes bug#41755

In openp_add_middle_dir_to_suffixes we build a heap-based list from
the passed suffixes.  It is crucial that we don't create a heap-based
cons that points to a stack-based list.

* src/lread.c (openp_add_middle_dir_to_suffixes): Copy suffixes when
building a list of middle-dirs and suffixes.
src/lread.c