]> git.eshelyaron.com Git - emacs.git/commit
Inhibit buffer relocation during regex searches
authorNoam Postavsky <npostavs@gmail.com>
Tue, 25 Oct 2016 01:22:07 +0000 (21:22 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 26 Oct 2016 00:15:33 +0000 (20:15 -0400)
commit43986d16fb6ad78a627250e14570ea70bdb1f23a
treecc62d12e7640e43fe98e7513b6c69b7953d404d7
parentfee4cef7d720e98922858e19b3161358041ec141
Inhibit buffer relocation during regex searches

* src/search.c (looking_at_1, fast_looking_at, search_buffer): Prevent
relocation of buffer contents during calls to re_search_2.  This ensures
the pointers into buffer text won't be invalidated by
r_alloc_sbrk (called from malloc with configurations where
REL_ALLOC=yes).
src/search.c