[Pkg-javascript-commits] [node-asn1.js] 191/202: der: increase limit for long form definite len

Bastien Roucariès rouca at moszumanska.debian.org
Thu Apr 20 19:19:07 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 099b36a4114900a1368213ec41efa668cf5a9143
Author: Felix Hanley <felix at userspace.com.au>
Date:   Wed Dec 28 05:31:56 2016 +0700

    der: increase limit for long form definite len
---
 lib/asn1/decoders/der.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/asn1/decoders/der.js b/lib/asn1/decoders/der.js
index 4ecc75b..79a60ac 100644
--- a/lib/asn1/decoders/der.js
+++ b/lib/asn1/decoders/der.js
@@ -308,7 +308,7 @@ function derDecodeLen(buf, primitive, fail) {
 
   // Long form
   var num = len & 0x7f;
-  if (num >= 4)
+  if (num > 4)
     return buf.error('length octect is too long');
 
   len = 0;

-- 
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