mirror of
https://github.com/emn178/js-md5.git
synced 2026-08-12 20:31:43 +08:00
Fixed incorrect result when file size >= 4G.
This commit is contained in:
+7
-1
@@ -241,8 +241,14 @@
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
context('when large size', function () {
|
||||
var hash = md5.create();
|
||||
hash.bytes = 4294967295;
|
||||
hash.update('any');
|
||||
expect(hash.hBytes).to.be(1);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#bas64', function () {
|
||||
for (var testCaseName in base64TestCases) {
|
||||
|
||||
Reference in New Issue
Block a user