• Noam Postavsky's avatar
    Inhibit buffer relocation during regex searches · 43986d16
    Noam Postavsky authored
    * 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).
    43986d16
search.c 102 KB