diff options
author | Vicent Marti <tanoku@gmail.com> | 2014-01-23 22:27:52 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-01-23 23:05:05 +0100 |
commit | a201c20b41a2f0725977bcb89a2a66135d776ba2 (patch) | |
tree | b92f2959254e3ef18c496a644012abbe9a431096 /git-difftool--helper.sh | |
parent | read-cache: use get_be32 instead of hand-rolled ntoh_l (diff) | |
download | git-a201c20b41a2f0725977bcb89a2a66135d776ba2.tar.xz git-a201c20b41a2f0725977bcb89a2a66135d776ba2.zip |
ewah: support platforms that require aligned reads
The caller may hand us an unaligned buffer (e.g., because it
is an mmap of a file with many ewah bitmaps). On some
platforms (like SPARC) this can cause a bus error. We can
fix it with a combination of get_be32 and moving the data
into an aligned buffer (which we would do anyway, but we can
move it before fixing the endianness).
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-difftool--helper.sh')
0 files changed, 0 insertions, 0 deletions