iliaa                                    Mon, 22 Nov 2010 13:12:28 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=305650

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

Bug: http://bugs.php.net/51003 (Assigned) unaligned memory access in 
ext/hash/hash_tiger.c
      
Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/hash/php_hash_tiger.h
    U   php/php-src/trunk/ext/hash/php_hash_tiger.h

Modified: php/php-src/branches/PHP_5_3/ext/hash/php_hash_tiger.h
===================================================================
--- php/php-src/branches/PHP_5_3/ext/hash/php_hash_tiger.h      2010-11-22 
13:10:13 UTC (rev 305649)
+++ php/php-src/branches/PHP_5_3/ext/hash/php_hash_tiger.h      2010-11-22 
13:12:28 UTC (rev 305650)
@@ -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);

Modified: php/php-src/trunk/ext/hash/php_hash_tiger.h
===================================================================
--- php/php-src/trunk/ext/hash/php_hash_tiger.h 2010-11-22 13:10:13 UTC (rev 
305649)
+++ php/php-src/trunk/ext/hash/php_hash_tiger.h 2010-11-22 13:12:28 UTC (rev 
305650)
@@ -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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to