You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Use CryptoJS to compute an MD5 inside a web worker with particular file sizes
What is the expected output? What do you see instead?
I expected to get an MD5, but instead got a maximum call stack exceeded error.
What version of the product are you using? On what operating system?
3.1.2 on chrome linux.
Please provide any additional information below.
Here is a patch which fixes it. For some reason this only happens in a web
worker, perhaps the limits to fn.apply are less in the web worker environment?..
Index: core.js
===================================================================
--- core.js (revision 664)
+++ core.js (working copy)
@@ -217,7 +217,9 @@
}
} else {
// Copy all words at once
- thisWords.push.apply(thisWords, thatWords);
+ for (var i = 0; i < thatWords.length) {
+ thisWords.push(thatWords[i]);
+ }
}
this.sigBytes += thatSigBytes;
Original issue reported on code.google.com by e...@dnanexus.com on 9 Jul 2013 at 8:52
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
e...@dnanexus.com
on 9 Jul 2013 at 8:52The text was updated successfully, but these errors were encountered: