[PATCH 0/2] Fix memory corruption with FSMonitor-enabled unpack_trees()
- From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Mar 17, 2021, 15:30 UTC
- Message-ID
- <pull.891.git.1615995049.gitgitgadget@gmail.com>
While dog-fooding Jeff Hostetler's FSMonitor patches, I ran into a really obscure segmentation fault during one of my epic Git for Windows rebases. Turns out that this bug is quite old.
Johannes Schindelin (2): fsmonitor: fix memory corruption in some corner cases fsmonitor: do not forget to release the token in `discard_index()`
read-cache.c | 1 + unpack-trees.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
base-commit: dfaed028620c2dca08d24583c7fc8b0aef9b6d0f Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-891%2Fdscho%2Ffix-fsmonitor-crash-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-891/dscho/fix-fsmonitor-crash-v1 Pull-Request: https://github.com/gitgitgadget/git/pull/891
-- gitgitgadget