summaryrefslogtreecommitdiff
path: root/ext/hash/php_hash_tiger.h
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-11-22 13:12:28 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2010-11-22 13:12:28 (GMT)
commit50e6d20d3ca0e6e2c0e07ec9d17184d701151c9d (patch)
tree036aa6f1a2a7882e931e509af986d3d9004cb674 /ext/hash/php_hash_tiger.h
parent8d82e961034f836153c54ba52f154609d9d4200b (diff)
downloadphp-50e6d20d3ca0e6e2c0e07ec9d17184d701151c9d.tar.gz
Fixed bug #51003 (unaligned memory access in ext/hash/hash_tiger.c).
Diffstat (limited to 'ext/hash/php_hash_tiger.h')
-rw-r--r--ext/hash/php_hash_tiger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/hash/php_hash_tiger.h b/ext/hash/php_hash_tiger.h
index 8a8dc70..5b68a10 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);