libtasn1-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU libtasn1 branch, master, updated. libtasn1_3_6-2-gf09f2b9


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_3_6-2-gf09f2b9
Date: Mon, 26 May 2014 11:55:31 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU libtasn1".

http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=f09f2b9e497d0597f3372014838df08f81f653b4

The branch, master has been updated
       via  f09f2b9e497d0597f3372014838df08f81f653b4 (commit)
      from  06cae138000a07dbebcc59728371b86ba6ec30e2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f09f2b9e497d0597f3372014838df08f81f653b4
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Mon May 26 12:35:53 2014 +0200

    fixes in length calculation in _asn1_extract_der_octet().

-----------------------------------------------------------------------

Summary of changes:
 lib/decoding.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/decoding.c b/lib/decoding.c
index 0e28b69..affffed 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -689,7 +689,7 @@ _asn1_extract_der_octet (asn1_node node, const unsigned 
char *der,
       if (len2 < -1)
        return ASN1_DER_ERROR;
 
-      if (len2 > 0)
+      if (len2 >= 0)
        {
          DECR_LEN(der_len, len2+len3);
          _asn1_append_value (node, der + counter + len3, len2);
@@ -702,7 +702,7 @@ _asn1_extract_der_octet (asn1_node node, const unsigned 
char *der,
                                     der_len);
          if (result != ASN1_SUCCESS)
            return result;
-         DECR_LEN(der_len, len2);
+         len2 = 0;
        }
 
       DECR_LEN(der_len, 1);


hooks/post-receive
-- 
GNU libtasn1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]