[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU libtasn1 branch, master, updated. libtasn1_3_6-15-gecd1884
From: |
Nikos Mavrogiannopoulos |
Subject: |
[SCM] GNU libtasn1 branch, master, updated. libtasn1_3_6-15-gecd1884 |
Date: |
Wed, 04 Jun 2014 08:14:26 +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=ecd1884be1d2e0f0063f82b0dd47ebe0231c3eb4
The branch, master has been updated
via ecd1884be1d2e0f0063f82b0dd47ebe0231c3eb4 (commit)
via 4f3b6264b2020dd831aec073369238749167149e (commit)
from 12635afc552622caaa63d91500d4c1d319785d7a (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 ecd1884be1d2e0f0063f82b0dd47ebe0231c3eb4
Author: Nikos Mavrogiannopoulos <address@hidden>
Date: Tue Jun 3 16:35:45 2014 +0200
more efficient check for '?LAST' and error checking.
commit 4f3b6264b2020dd831aec073369238749167149e
Author: Nikos Mavrogiannopoulos <address@hidden>
Date: Mon Jun 2 10:49:55 2014 +0200
Add a sanity check in asn1_der_decoding_startEnd()
-----------------------------------------------------------------------
Summary of changes:
lib/decoding.c | 3 +++
lib/parser_aux.c | 10 +++++-----
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/lib/decoding.c b/lib/decoding.c
index 8f6fe8a..54f0167 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -1581,6 +1581,9 @@ asn1_der_decoding_startEnd (asn1_node element, const void
*ider, int ider_len,
*end = node_to_find->end;
}
+ if (*end < *start)
+ return ASN1_GENERIC_ERROR;
+
return ASN1_SUCCESS;
}
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index effedb2..39e4046 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -170,13 +170,13 @@ asn1_find_node (asn1_node pointer, const char *name)
return NULL;
p = p->down;
+ if (p == NULL)
+ return NULL;
/* The identifier "?LAST" indicates the last element
in the right chain. */
- if (!strcmp (n, "?LAST"))
+ if (n[0] == '?' && n[1] == 'L') /* ?LAST */
{
- if (p == NULL)
- return NULL;
while (p->right)
p = p->right;
}
@@ -189,9 +189,9 @@ asn1_find_node (asn1_node pointer, const char *name)
else
p = p->right;
}
- if (p == NULL)
- return NULL;
}
+ if (p == NULL)
+ return NULL;
} /* while */
return p;
hooks/post-receive
--
GNU libtasn1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU libtasn1 branch, master, updated. libtasn1_3_6-15-gecd1884,
Nikos Mavrogiannopoulos <=