Re: Can we just get rid of kwset & obstack in favor of optimistically using PCRE v2 JIT?
- From
Carlo Arenas <carenas@gmail.com>
- Date
- Jun 15, 2019, 09:01 UTC
- Message-ID
- <CAPUEspjKxQFiRgmfb2SuR_xpVu4=MN66kGEeBK1pHdBgXQbv7Q@mail.gmail.com>
- In-Reply-To
- <87v9x793qi.fsf@evledraar.gmail.com>
> It seems most packagers build with PCRE v2 now (CC: > git-packagers@). I.e. we'd keep something like compile_fixed_regexp() > (and as an aside just use PCRE's \Q...\E instead of our own escaping).
OpenBSD does PCRE v1 without JIT but HardenedBSD does and therefore segfaults when calling: `git grep -P`.
A fix probably based on the old proposed patchset[1] will be needed in this case with more urgency
Carlo
[1] https://public-inbox.org/git/20181209230024.43444-1-carenas@gmail.com/