summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2021-04-26 01:02:59 +0000
committerJunio C Hamano <gitster@pobox.com>2021-04-27 16:31:39 +0900
commit71b7672b674bc9a44fb41428804be428c2981046 (patch)
tree71f63e2870fb81aecf44477be42ce3fcca6499c2 /contrib/persistent-https
parent72871b132c7c81d23aa9d4467013651c1c51bbc4 (diff)
downloadgit-71b7672b674bc9a44fb41428804be428c2981046.tar.gz
git-71b7672b674bc9a44fb41428804be428c2981046.zip
builtin/pack-objects: avoid using struct object_id for pack hash
We use struct object_id for the names of objects. It isn't intended to be used for other hash values that don't name objects such as the pack hash. Because struct object_id will soon need to have its algorithm member set, using it in this code path would mean that we didn't set that member, only the hash member, which would result in a crash. For both of these reasons, switch to using an unsigned char array of size GIT_MAX_RAWSZ. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions