]> granicus.if.org Git - php/commitdiff
Fixed bug #51003 (unaligned memory access in ext/hash/hash_tiger.c).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 22 Nov 2010 13:12:28 +0000 (13:12 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 22 Nov 2010 13:12:28 +0000 (13:12 +0000)
ext/hash/php_hash_tiger.h

index 8a8dc7011eaad42b446780156562dfbc17da53d9..5b68a10a3e665808221423eceed1cdbf01f25754 100644 (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);