summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-10 13:59:00 -0700
committerJunio C Hamano <gitster@pobox.com>2017-07-10 13:59:00 -0700
commitb944d7c4b58a8538f63e888fc04e83b89700a7fc (patch)
treee738b4114378b531c329eb9f0c0db8df98654dd6
parent9f6728da31d82e3fd06a00123467aeb64902b4f2 (diff)
parentda41c942b307e0beab1fc5800a42b0c495f54ff6 (diff)
downloadgit-b944d7c4b58a8538f63e888fc04e83b89700a7fc.tar.gz
Merge branch 'jc/pack-bitmap-unaligned' into maint
An unaligned 32-bit access in pack-bitmap code ahs been corrected. * jc/pack-bitmap-unaligned: pack-bitmap: don't perform unaligned memory access
-rw-r--r--pack-bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-bitmap.c b/pack-bitmap.c
index 39bcc16846..294cfa43a4 100644
--- a/pack-bitmap.c
+++ b/pack-bitmap.c
@@ -627,7 +627,7 @@ static void show_objects_for_type(
sha1 = nth_packed_object_sha1(bitmap_git.pack, entry->nr);
if (bitmap_git.hashes)
- hash = ntohl(bitmap_git.hashes[entry->nr]);
+ hash = get_be32(bitmap_git.hashes + entry->nr);
show_reach(sha1, object_type, 0, hash, bitmap_git.pack, entry->offset);
}