Merge branch 'ds/sparse-updates-oob-access-fix'
commitce1adb11571f3196afa07642fdda37b6bbbc5aa4
authorJunio C Hamano <gitster@pobox.com>
Wed, 13 May 2020 19:19:20 +0000 (13 12:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 May 2020 19:19:20 +0000 (13 12:19 -0700)
tree68b6f5d32a5b1d06f3d621229b00db095fd0c224
parent9e8ed173b4cc4f1855501a7c8ffab6ffbc5bf34d
parent0eeb3be4c4b297f9edb94c4741af606df396985d
Merge branch 'ds/sparse-updates-oob-access-fix'

The code to skip unmerged paths in the index when sparse checkout
is in use would have made out-of-bound access of the in-core index
when the last path was unmerged, which has been corrected.

* ds/sparse-updates-oob-access-fix:
  unpack-trees: avoid array out-of-bounds error
unpack-trees.c