projects
/
platform
/
upstream
/
libtasn1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64c550a
)
Check that p is not NULL
author
Kurt Roeckx
<kurt@roeckx.be>
Sat, 26 Apr 2014 16:10:32 +0000
(18:10 +0200)
committer
Nikos Mavrogiannopoulos
<nmav@gnutls.org>
Sun, 27 Apr 2014 16:28:06 +0000
(18:28 +0200)
As far as I can tell this should never happen.
lib/coding.c
patch
|
blob
|
history
diff --git
a/lib/coding.c
b/lib/coding.c
index
86df6f0
..
e561700
100644
(file)
--- a/
lib/coding.c
+++ b/
lib/coding.c
@@
-862,6
+862,8
@@
_asn1_ordering_set_of (unsigned char *der, int der_len, asn1_node node)
while (p && ((type_field (p->type) == ASN1_ETYPE_TAG) ||
(type_field (p->type) == ASN1_ETYPE_SIZE)))
p = p->right;
+ if (p == NULL)
+ return ASN1_VALUE_NOT_VALID;
p = p->right;
if ((p == NULL) || (p->right == NULL))