com php-src: Fixed bug #75303 sha3 hangs on bigendian: ext/hash/hash_sha3.c
| From: | Remi Collet | Date: | Mon, 02 Oct 2017 09:25:23 +0000 |
| Subject: | com php-src: Fixed bug #75303 sha3 hangs on bigendian: ext/hash/hash_sha3.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99593@lists.php.net to get a copy of this message | ||
Commit: fa78afa112fb97e75d53f130b0feb5cca7df133d
Author: Remi Collet <remi@php.net> Mon, 2 Oct 2017 11:25:23 +0200
Parents: 43722931920a5802befb2b012d92431e26aa6058
Branches: PHP-7.1 PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fa78afa112fb97e75d53f130b0feb5cca7df133d
Log:
Fixed bug #75303 sha3 hangs on bigendian
Bugs:
https://bugs.php.net/75303
Changed paths:
M ext/hash/hash_sha3.c
Diff:
diff --git a/ext/hash/hash_sha3.c b/ext/hash/hash_sha3.c
index d190ae4..d2e448e 100644
--- a/ext/hash/hash_sha3.c
+++ b/ext/hash/hash_sha3.c
@@ -39,7 +39,7 @@ static inline unsigned char idx(unsigned char x, unsigned char y) {
#ifdef WORDS_BIGENDIAN
static inline uint64_t load64(const unsigned char* x) {
- char i;
+ signed char i;
uint64_t ret = 0;
for (i = 7; i >= 0; --i) {
ret <<= 8;