summaryrefslogtreecommitdiff
path: root/src/md5.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-28 16:36:24 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-28 16:36:24 +0000
commit1bebff26972a3fd97c969072a6e44cfc1306fab6 (patch)
treee82805d3dd90c2f530d2ac72cdc8e67cd6a43443 /src/md5.h
parentc7fac4dbca8a3266c973bd06469fd2e6534ab7ab (diff)
Fixed dirty uint32_t cast leading to aliasing issues.
Diffstat (limited to 'src/md5.h')
-rw-r--r--src/md5.h5
1 files changed, 4 insertions, 1 deletions
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;