There are several problems with this function:
1. printf statements are used rather than mexPrintf.
2. The output char array needs to be 1 greater in length.
3. Memory allocated to the output char array is deallocated before the function exits.
If anyone would like a working version, feel free to message me.
Comment only
05 May 2009
MD5 in MATLAB
An MD5 C-mex function for MATLAB. It takes less than 1 minute for a 700MB file size.
I've compiled this in r2009a under Vista 32bit using lcc.
I'm getting a segfault nearly everytime I call this:
The process takes 0 seconds
MEMORY BLOCK INTEGRITY FAILURE: ptr = 0x1F39FD40 caller = free(ptr)
Data has been written off the end of a memory block.
This block of memory has already been freed.
The size of the array was 32 bytes.
The value of the free counter is count = 288020,
alloc counter in header of memory block = 384563.
Comment only
09 Oct 2008
MD5 in MATLAB
An MD5 C-mex function for MATLAB. It takes less than 1 minute for a 700MB file size.
Devang gandhi
I am getting core dump after I run an excel file through the algorithm. Any suggestions as to why that is the case?
Comment only
21 Jul 2008
MD5 in MATLAB
An MD5 C-mex function for MATLAB. It takes less than 1 minute for a 700MB file size.
Anthony Kendall
Great! It compiles with no problems (WinXP, R2008a, Visual C++), and runs very quickly.
It's just as fast as external MD5 programs, for instance MD5deep.exe on WinXP, and produces identical results.
Comment only