[Pkg-javascript-commits] [node-asn1.js] 62/202: der: do not edit input arrays in-place
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Apr 20 19:18:54 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-asn1.js.
commit e287c19d933621fd3a736dac66892f3ef026b441
Author: Fedor Indutny <fedor at indutny.com>
Date: Tue Nov 4 14:32:46 2014 -0500
der: do not edit input arrays in-place
---
lib/asn1/encoders/der.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/asn1/encoders/der.js b/lib/asn1/encoders/der.js
index 94dc17f..2a2ff4b 100644
--- a/lib/asn1/encoders/der.js
+++ b/lib/asn1/encoders/der.js
@@ -80,6 +80,8 @@ DERNode.prototype._encodeObjid = function encodeObjid(id, values, relative) {
id = values[id].split(/\s+/g);
for (var i = 0; i < id.length; i++)
id[i] |= 0;
+ } else if (id) {
+ id = id.slice();
}
if (!Array.isArray(id)) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-asn1.js.git
More information about the Pkg-javascript-commits
mailing list