Eli Zaretskii writes: >> Oh, I see. Yes, I think you're right, the pointers stored in regstart, >> regend, and fail_stack could become inconsistent. Hard to say what >> kind of regex could trigger it, but it seems quite possible. > > Maybe we should simply call r_alloc_inhibit_buffer_relocation around > any calls to regex.c functions, and remove the code you wrote to > handle relocations internally. How's this: