summaryrefslogtreecommitdiff
path: root/src/regex.h
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2016-10-24 21:22:07 -0400
committerNoam Postavsky <npostavs@gmail.com>2016-10-25 20:15:33 -0400
commit43986d16fb6ad78a627250e14570ea70bdb1f23a (patch)
treecc62d12e7640e43fe98e7513b6c69b7953d404d7 /src/regex.h
parentfee4cef7d720e98922858e19b3161358041ec141 (diff)
downloademacs-43986d16fb6ad78a627250e14570ea70bdb1f23a.tar.gz
emacs-43986d16fb6ad78a627250e14570ea70bdb1f23a.tar.bz2
emacs-43986d16fb6ad78a627250e14570ea70bdb1f23a.zip
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).
Diffstat (limited to 'src/regex.h')
0 files changed, 0 insertions, 0 deletions