diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-09-26 16:09:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-26 16:09:19 -0700 |
commit | 6a67695268562f67babdb7d5195c8a43cc4015fa (patch) | |
tree | b5bbacc08e466f6de62cf2e9fd450d71ef0ea6c7 /Makefile | |
parent | Merge branch 'nd/checkout-disambiguation' (diff) | |
parent | regex: use regexec_buf() (diff) | |
download | tgif-6a67695268562f67babdb7d5195c8a43cc4015fa.tar.xz |
Merge branch 'js/regexec-buf'
Some codepaths in "git diff" used regexec(3) on a buffer that was
mmap(2)ed, which may not have a terminating NUL, leading to a read
beyond the end of the mapped region. This was fixed by introducing
a regexec_buf() helper that takes a <ptr,len> pair with REG_STARTEND
extension.
* js/regexec-buf:
regex: use regexec_buf()
regex: add regexec_buf() that can work on a non NUL-terminated string
regex: -G<pattern> feeds a non NUL-terminated string to regexec() and fails
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -301,7 +301,8 @@ all:: # crashes due to allocation and free working on different 'heaps'. # It's defined automatically if USE_NED_ALLOCATOR is set. # -# Define NO_REGEX if you have no or inferior regex support in your C library. +# Define NO_REGEX if your C library lacks regex support with REG_STARTEND +# feature. # # Define HAVE_DEV_TTY if your system can open /dev/tty to interact with the # user. |