Re: [PATCH 0/3] Fix a segfault caused by regexec() being called on mmap()ed data
- From
Jeff King <peff@peff.net>
- Date
- Sep 6, 2016, 07:12 UTC
- Message-ID
- <20160906071255.ggsoj2lh2f3kubhj@sigill.intra.peff.net>
- In-Reply-To
- <xmqqwpiqp3ho.fsf@gitster.mtv.corp.google.com>
On Mon, Sep 05, 2016 at 12:10:11PM -0700, Junio C Hamano wrote:
> * We could use <ptr,len> variant of regexp engine as you proposed, > which I think is a preferrable solution. Do people know of a > widely accepted implementation that we can throw into compat/ as > fallback that is compatible with GPLv2?
Maybe the one already in compat/regex? ;P
I think re_search() the correct replacement function but it's been a while since I've looked into it.
-Peff