Fixed bug #51003 (unaligned memory access in ext/hash/hash_tiger.c).

This commit is contained in:
Ilia Alshanetsky 2010-11-22 13:12:28 +00:00
parent 534395e4ae
commit a40667d756

View File

@ -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);