- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In case anyone is trying to use the code from this forum post:
https://community.intel.com/t5/Intel-Fortran-Compiler/MD5-Hash/td-p/801183
I wanted to let folks know that there was a bug I fixed that might be helpful to someone in the future.
I changed this line of code:
character*((int(len(string)/64)+1)*64) newString
to:
character*((int((len(string)+8)/64)+1)*64) newString
The inclusion of the "+8" allows for the 8 bit length portion of the MD5 padding spec to be accounted for and prevent string overflows for strings that need fewer than 8 bits of padding.
Not that this code is being used many places....I just recently used it and had to debug/fix the issue so figured I'd post about it just in case.
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page