From 1bebff26972a3fd97c969072a6e44cfc1306fab6 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Wed, 28 May 2014 16:36:24 +0000 Subject: Fixed dirty uint32_t cast leading to aliasing issues. --- src/md5.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/md5.h') diff --git a/src/md5.h b/src/md5.h index a7b9f17..9dc72c7 100644 --- a/src/md5.h +++ b/src/md5.h @@ -18,7 +18,10 @@ typedef unsigned long uint32; #endif struct MD5Context { - unsigned char in[64]; + union { + unsigned char ui8[64]; + uint32 ui32[16]; + } in; uint32 buf[4]; uint32 bits[2]; int doByteReverse; -- cgit v1.2.3