Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.4
-
Fix Version/s: JRuby 1.2
-
Component/s: Extensions
-
Labels:None
-
Number of attachments :
Description
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.
Can you come up with a patch for this? It's probably not hard, but we're pretty slammed with 1.1.5 preparations right now.