author | Dennis Stosberg <dennis@stosberg.net> | |
Sun, 28 May 2006 19:08:08 +0000 (21:08 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 28 May 2006 20:31:50 +0000 (13:31 -0700) | ||
commit | ac58c7b18ecf1c2ef41c848879e8b1838162db54 | |
tree | 8ca70b62dc1e1175de4f5ffefd8250cadbb6c037 | tree | snapshot |
parent | b6c4a480b3161effaa3578df91d8cdc83044d7b6 | commit | diff |
git-write-tree writes garbage on sparc64
In the "next" branch, write_index_ext_header() writes garbage on a
64-bit big-endian machine; the written index file will be unreadable.
I noticed this on NetBSD/sparc64. Reproducible with:
$ git init-db
$ :>file
$ git-update-index --add file
$ git-write-tree
$ git-update-index
error: index uses extension, which we do not understand
fatal: index file corrupt
Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
In the "next" branch, write_index_ext_header() writes garbage on a
64-bit big-endian machine; the written index file will be unreadable.
I noticed this on NetBSD/sparc64. Reproducible with:
$ git init-db
$ :>file
$ git-update-index --add file
$ git-write-tree
$ git-update-index
error: index uses extension, which we do not understand
fatal: index file corrupt
Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
read-cache.c | diff | blob | history |