From: Ilia Alshanetsky Date: Mon, 22 Nov 2010 13:12:28 +0000 (+0000) Subject: Fixed bug #51003 (unaligned memory access in ext/hash/hash_tiger.c). X-Git-Tag: php-5.3.4RC2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a40667d756367f41c61356841fa6eed2d64a8166;p=php Fixed bug #51003 (unaligned memory access in ext/hash/hash_tiger.c). --- diff --git a/ext/hash/php_hash_tiger.h b/ext/hash/php_hash_tiger.h index 8a8dc7011e..5b68a10a3e 100644 --- a/ext/hash/php_hash_tiger.h +++ b/ext/hash/php_hash_tiger.h @@ -25,9 +25,9 @@ typedef struct { php_hash_uint64 state[3]; php_hash_uint64 passed; + unsigned char buffer[64]; unsigned int passes:1; unsigned int length:7; - unsigned char buffer[64]; } PHP_TIGER_CTX; PHP_HASH_API void PHP_3TIGERInit(PHP_TIGER_CTX *context);