Blame SOURCES/glibc-rh883974.patch

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