[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] Make asn1_ordering_set_of() return error if it can't find da
From: |
Kurt Roeckx |
Subject: |
[PATCH 2/3] Make asn1_ordering_set_of() return error if it can't find data for one of the entries. |
Date: |
Sat, 26 Apr 2014 18:10:31 +0200 |
---
lib/coding.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/coding.c b/lib/coding.c
index 6cf3b31..7f9173c 100644
--- a/lib/coding.c
+++ b/lib/coding.c
@@ -906,6 +906,11 @@ _asn1_ordering_set_of (unsigned char *der, int der_len,
asn1_node node)
}
counter += len + len2;
}
+ else
+ {
+ err = ASN1_DER_ERROR;
+ goto error;
+ }
p_vet->end = counter;
p = p->right;
--
1.9.2
- [PATCH 1/3] Make _asn1_ordering_set_of() really sort., Kurt Roeckx, 2014/04/26
- [PATCH 2/3] Make asn1_ordering_set_of() return error if it can't find data for one of the entries.,
Kurt Roeckx <=
- [PATCH 3/3] Check that p is not NULL, Kurt Roeckx, 2014/04/26
- Re: [PATCH 1/3] Make _asn1_ordering_set_of() really sort., Kurt Roeckx, 2014/04/26
- Re: [PATCH 1/3] Make _asn1_ordering_set_of() really sort., Kurt Roeckx, 2014/04/26
- Re: [PATCH 1/3] Make _asn1_ordering_set_of() really sort., Nikos Mavrogiannopoulos, 2014/04/27
- Re: [PATCH 1/3] Make _asn1_ordering_set_of() really sort., Kurt Roeckx, 2014/04/27
- Re: [PATCH 1/3] Make _asn1_ordering_set_of() really sort., Nikos Mavrogiannopoulos, 2014/04/27
- Re: [PATCH 1/3] Make _asn1_ordering_set_of() really sort., Kurt Roeckx, 2014/04/27
- Re: [PATCH 1/3] Make _asn1_ordering_set_of() really sort., Nikos Mavrogiannopoulos, 2014/04/27
- Re: [PATCH 1/3] Make _asn1_ordering_set_of() really sort., Kurt Roeckx, 2014/04/27
Re: [PATCH 1/3] Make _asn1_ordering_set_of() really sort., Kurt Roeckx, 2014/04/26