summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2018-02-19 10:18:59 +0000
committerPatrick Steinhardt <ps@pks.im>2018-02-19 10:18:59 +0000
commitcabe16df0d7fc3b6fa2242064a6fa34282a102f4 (patch)
treec0ea43e2793c34d6dfbd5662b851c596b28085b7 /include/git2
parentf1ad004ccb880b13714aefa00e2b62f48803d619 (diff)
downloadlibgit2-cabe16df0d7fc3b6fa2242064a6fa34282a102f4.tar.gz
tests: index::filemodes: fix use of uninitialized memory
The new index entry structure was not being initialized to all-zeroes. As that structure is used to add a new entry to the current index, and the hashing algorithm of the index making use of the uninitialized flags to calculate the state, we might miscompute the hash of the entry and add it at the wrong position. Later lookups would then fail. Initialize the structure with `memset` to fix the test breaking on some platforms.
Diffstat (limited to 'include/git2')
0 files changed, 0 insertions, 0 deletions