MD5 digests of very big files

Alejandro Tejada capellan2000 at gmail.com
Sun Jun 27 13:46:39 EDT 2010


Hi all,

Read this report written by Mark Schonewille:
http://quality.runrev.com/qacenter/show_bug.cgi?id=2410

Mark Waddingham post this function:

function quasiMD5 pFile
  local tMD5s
  open file pFile for binary read
  repeat
    read from file pFile for 4096 chars
    if the result is EOF then
      exit repeat
    end if
    put the md5digest of it after tMD5s
  end repeat
  close file pFile
  return the md5Digest of tMD5s
end quasiMD5

But when i run this function, Rev
consumes all memory available.

Thanks in advance for your help!

Al



More information about the use-livecode mailing list