Skip to content

Commit b944d7c

Browse files
committed
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
2 parents 9f6728d + da41c94 commit b944d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pack-bitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ static void show_objects_for_type(
627627
sha1 = nth_packed_object_sha1(bitmap_git.pack, entry->nr);
628628

629629
if (bitmap_git.hashes)
630-
hash = ntohl(bitmap_git.hashes[entry->nr]);
630+
hash = get_be32(bitmap_git.hashes + entry->nr);
631631

632632
show_reach(sha1, object_type, 0, hash, bitmap_git.pack, entry->offset);
633633
}

0 commit comments

Comments
 (0)