mirror of
https://github.com/emn178/js-sha1.git
synced 2026-08-13 04:21:35 +08:00
Fixed incorrect result when file size >= 512M.
This commit is contained in:
@@ -175,5 +175,12 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
context('when large size', function () {
|
||||
var hash = sha1.create();
|
||||
hash.bytes = 4294967295;
|
||||
hash.update('any');
|
||||
expect(hash.hBytes).to.be(1);
|
||||
});
|
||||
});
|
||||
})(sha1);
|
||||
|
||||
Reference in New Issue
Block a user