From d3e607bf1a8f838b33b1f451a23327b4632f21dd Mon Sep 17 00:00:00 2001 From: Todd A Ouska Date: Thu, 16 Jun 2011 11:57:34 -0700 Subject: [PATCH] fix getlength patch --- ctaocrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctaocrypt/src/asn.c b/ctaocrypt/src/asn.c index efc7dbd89..afee3e625 100644 --- a/ctaocrypt/src/asn.c +++ b/ctaocrypt/src/asn.c @@ -287,7 +287,7 @@ static int GetLength(const byte* input, word32* inOutIdx, int* len, if (b >= ASN_LONG_LENGTH) { word32 bytes = b & 0x7F; - if ( (i+b) > maxIdx) { /* for reading bytes */ + if ( (i+bytes) > maxIdx) { /* for reading bytes */ CYASSL_MSG("GetLength bad long length"); return BUFFER_E; }