]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'cl/regexec-macos-leak' into jch
authorJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 17:40:47 +0000 (10:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 17:40:47 +0000 (10:40 -0700)
A compatibility workaround has been introduced for macOS to address
a memory leak in the system regex engine when it encounters invalid
multibyte sequences.  The workaround segments the input buffer at
invalid byte boundaries and searches each valid segment separately
using regexec(), avoiding the leaking path.

* cl/regexec-macos-leak:
  SQUASH???
  regexec: work around macOS TRE leak on invalid UTF-8

1  2 
Makefile
git-compat-util.h
meson.build
t/t7810-grep.sh

diff --cc Makefile
Simple merge
Simple merge
diff --cc meson.build
Simple merge
diff --cc t/t7810-grep.sh
Simple merge