summaryrefslogtreecommitdiffstats
path: root/pack-bitmap.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-06-30 13:45:24 -0700
committerJunio C Hamano <gitster@pobox.com>2017-06-30 13:45:24 -0700
commitca069a3c5ce86303865cf49260ab8f4ff758d1d8 (patch)
tree435c4bb260a3478ac6644e8962f28ae2340e5d00 /pack-bitmap.c
parentMerge branch 'ah/doc-pretty-color-auto-prefix' (diff)
parentpack-bitmap: don't perform unaligned memory access (diff)
downloadgit-ca069a3c5ce86303865cf49260ab8f4ff758d1d8.tar.xz
git-ca069a3c5ce86303865cf49260ab8f4ff758d1d8.zip
Merge branch 'jc/pack-bitmap-unaligned'
An unaligned 32-bit access in pack-bitmap code ahs been corrected. * jc/pack-bitmap-unaligned: pack-bitmap: don't perform unaligned memory access
Diffstat (limited to 'pack-bitmap.c')
-rw-r--r--pack-bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-bitmap.c b/pack-bitmap.c
index a3ac3dccd4f..327634cd71b 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);
}