diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-28 16:36:24 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-28 16:36:24 +0000 |
commit | 1bebff26972a3fd97c969072a6e44cfc1306fab6 (patch) | |
tree | e82805d3dd90c2f530d2ac72cdc8e67cd6a43443 /src/md5.h | |
parent | c7fac4dbca8a3266c973bd06469fd2e6534ab7ab (diff) |
Fixed dirty uint32_t cast leading to aliasing issues.
Diffstat (limited to 'src/md5.h')
-rw-r--r-- | src/md5.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |