Blame SOURCES/glibc-rh883974.patch

b40826
diff -Nrup a/crypt/md5.c b/crypt/md5.c
b40826
--- a/crypt/md5.c	2010-05-04 05:27:23.000000000 -0600
b40826
+++ b/crypt/md5.c	2013-01-02 13:21:20.140576889 -0700
b40826
@@ -1,6 +1,6 @@
b40826
 /* Functions to compute MD5 message digest of files or memory blocks.
b40826
    according to the definition of MD5 in RFC 1321 from April 1992.
b40826
-   Copyright (C) 1995,1996,1997,1999,2000,2001,2005
b40826
+   Copyright (C) 1995,1996,1997,1999,2000,2001,2005,2011
b40826
 	Free Software Foundation, Inc.
b40826
    This file is part of the GNU C Library.
b40826
 
b40826
@@ -123,9 +123,9 @@ md5_finish_ctx (ctx, resbuf)
b40826
   memcpy (&ctx->buffer[bytes], fillbuf, pad);
b40826
 
b40826
   /* Put the 64-bit file length in *bits* at the end of the buffer.  */
b40826
-  *(md5_uint32 *) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3);
b40826
-  *(md5_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) |
b40826
-							(ctx->total[0] >> 29));
b40826
+  ctx->buffer32[(bytes + pad) / 4] = SWAP (ctx->total[0] << 3);
b40826
+  ctx->buffer32[(bytes + pad + 4) / 4] = SWAP ((ctx->total[1] << 3) |
b40826
+					       (ctx->total[0] >> 29));
b40826
 
b40826
   /* Process last bytes.  */
b40826
   md5_process_block (ctx->buffer, bytes + pad + 8, ctx);
b40826
diff -Nrup a/crypt/md5.h b/crypt/md5.h
b40826
--- a/crypt/md5.h	2010-05-04 05:27:23.000000000 -0600
b40826
+++ b/crypt/md5.h	2013-01-02 13:21:20.140576889 -0700
b40826
@@ -1,6 +1,6 @@
b40826
 /* Declaration of functions and data types used for MD5 sum computing
b40826
    library functions.
b40826
-   Copyright (C) 1995-1997,1999,2000,2001,2004,2005
b40826
+   Copyright (C) 1995-1997,1999,2000,2001,2004,2005,2011
b40826
       Free Software Foundation, Inc.
b40826
    This file is part of the GNU C Library.
b40826
 
b40826
@@ -88,7 +88,11 @@ struct md5_ctx
b40826
 
b40826
   md5_uint32 total[2];
b40826
   md5_uint32 buflen;
b40826
-  char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32))));
b40826
+  union
b40826
+  {
b40826
+    char buffer[128];
b40826
+    md5_uint32 buffer32[32];
b40826
+  };
b40826
 };
b40826
 
b40826
 /*