From eb2ffd660a1d66f8f442c8c73d2de5c80a901d72 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 21 Feb 2014 14:32:00 +0000 Subject: [PATCH] Add missing '00 00' to the hex dump of the outro of indefinite length empty parts. If the decoded ASN1 was '30 80 00 00' then the hex dump showed only '30 80' --- dom.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dom.js b/dom.js index 7dd696d..ebdc953 100644 --- a/dom.js +++ b/dom.js @@ -159,6 +159,8 @@ ASN1.prototype.toHexDOM = function (root) { for (var i = 0, max = this.sub.length; i < max; ++i) node.appendChild(this.sub[i].toHexDOM(root)); this.toHexDOM_sub(node, "outro", this.stream, last.posEnd(), this.posEnd()); + } else { + this.toHexDOM_sub(node, "outro", this.stream, this.posContent(), this.posEnd()); } return node; }; -- 2.51.2