Merge branch 'js/fsmonitor-unpack-fix'
commit1dd4e7452295618b20703deffc4241bf7dd4be4f
authorJunio C Hamano <gitster@pobox.com>
Fri, 19 Mar 2021 22:25:37 +0000 (19 15:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Mar 2021 22:25:37 +0000 (19 15:25 -0700)
treea8390c1f3eafd563988d9c2fafe8ad680d7ecc4b
parent35381b13da846cc6ad620f9f9a5abf1d974d6e9b
parent4abc57848d8ace8218952c7376fa397c0850392c
Merge branch 'js/fsmonitor-unpack-fix'

The data structure used by fsmonitor interface was not properly
duplicated during an in-core merge, leading to use-after-free etc.

* js/fsmonitor-unpack-fix:
  fsmonitor: do not forget to release the token in `discard_index()`
  fsmonitor: fix memory corruption in some corner cases
read-cache.c
unpack-trees.c