Menu

#43 MD5: patch to fix GCC warning

v1.0 (example)
open
nobody
None
5
2013-07-10
2013-07-10
No

Currently GCC (4.8) reports the following warning for when compiling md5.c in libiax:
"dereferencing type-punned pointer will break strict-aliasing rules"

The attached patch resolves the issue by using a union in MD5Context for the "in" member, so it can be accessed as either a uint8_t[64] or a uint32_t[16].

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.