summaryrefslogtreecommitdiff
path: root/builtin/rev-parse.c
diff options
context:
space:
mode:
authorLibravatar James Clarke <jrtc27@jrtc27.com>2017-06-26 16:16:12 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-06-26 12:32:31 -0700
commitda41c942b307e0beab1fc5800a42b0c495f54ff6 (patch)
tree015affaa008353dad767538a216ac7712152ab8f /builtin/rev-parse.c
parentGit 2.10.3 (diff)
downloadtgif-da41c942b307e0beab1fc5800a42b0c495f54ff6.tar.xz
pack-bitmap: don't perform unaligned memory access
The preceding bitmap entries have a 1-byte XOR-offset and 1-byte flags, so their size is not a multiple of 4. Thus the name-hash cache is only guaranteed to be 2-byte aligned and so we must use get_be32 rather than indexing the array directly. Signed-off-by: James Clarke <jrtc27@jrtc27.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-parse.c')
0 files changed, 0 insertions, 0 deletions