Some x509 branch review points
From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 15 Oct 2014 11:15:42 +0100
1)
In x509parse.c:x509_get_version:
err = asn1_get_tag(p, end, &len,
Why the "| 0"? It doesn't do anything.
2)
In x509parse.c:x509_get_name:
cur->next = apr_palloc(result_pool, sizeof(x509_name));
if (cur->next == NULL)
We generally assume apr_palloc will abort rather than return NULL,
3)
In x509parse.c:x509_get_name:
oid = &cur->oid;
err = asn1_get_tag(p, end, &oid->len, ASN1_OID);
The asn1_get_tag() call verifies both that *p has not reached end and
Fix by assigning ASN1_OID explicitly or by moving the assignment after
-- Philip Martin | Subversion Committer WANdisco // *Non-Stop Data*Received on 2014-10-15 12:16:14 CEST |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.