Digest::Base stores in memory all bytes passed to the digest, causing
OutOfMemoryError
--------------------------------------------------------------------------------------
Key: JRUBY-3089
URL: http://jira.codehaus.org/browse/JRUBY-3089
Project: JRuby
Issue Type: Bug
Components: Extensions
Affects Versions: JRuby 1.1.4
Reporter: Trejkaz
Priority: Critical
Digest::Base is currently implemented by appending to a StringBuffer.
This will cause a certain OutOfMemoryError if you try to digest a file which
approaches half of your memory limit, which makes it unsuitable for the kind of
task for which digests are commonly used (i.e. finding the digest of files for
the sake of comparison.)
Instead of using an internal StringBuffer it should just update the
MessageDigest directly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email