sha1dc: update from upstream
Update sha1dc from the latest version by the upstream maintainer[1]. See 2db87328ef ("Merge branch 'ab/sha1dc'", 2017-07-10) for the last update. This fixes an issue where AIX was wrongly detected as a Little-endian instead of a Big-endian system. See [2][3][4]. 1. https://github.com/cr-marcstevens/sha1collisiondetection/commit/232357eb2ea0397388254a4b188333a227bf5b10 2. https://github.com/cr-marcstevens/sha1collisiondetection/pull/45 3. https://github.com/cr-marcstevens/sha1collisiondetection/pull/42 4. https://public-inbox.org/git/20180729200623.GF945730@genre.crustytoothpaste.net/ Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Aug 2, 2018 at 20:50 UTC
23e37f8e9d5961c0c8d52ac481693d3fca5309ce
2 files changed
+12
-2
sha1collisiondetection
+1
-1
@@ -1 +1 @@
1
-Subproject commit 19d97bf5af05312267c2e874ee6bcf584d9e9681
1
+Subproject commit 232357eb2ea0397388254a4b188333a227bf5b10
sha1dc/sha1.c
+11
-1
@@ -93,13 +93,23 @@
93
#define SHA1DC_BIGENDIAN
94
95
/* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> */
96
+#elif (defined(_AIX))
97
+
98
+/*
99
+ * Defines Big Endian on a whitelist of OSs that are known to be Big
100
+ * Endian-only. See
101
+ * https://public-inbox.org/git/93056823-2740-d072-1ebd-46b440b33d7e@felt.demon.nl/
102
+ */
103
+#define SHA1DC_BIGENDIAN
104
+
105
+/* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <os whitelist> */
106
#elif defined(SHA1DC_ON_INTEL_LIKE_PROCESSOR)
107
/*
108
* As a last resort before we do anything else we're not 100% sure
109
* about below, we blacklist specific processors here. We could add
110
* more, see e.g. https://wiki.debian.org/ArchitectureSpecificsMemo
111
*/
102
-#else /* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <processor blacklist> */
112
+#else /* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <os whitelist> or <processor blacklist> */
113
114
/* We do nothing more here for now */
115
/*#error "Uncomment this to see if you fall through all the detection"*/