mirror of https://github.com/openssl/openssl.git
Avoid creating an illegal pointer.
Found by tis-interpreter Reviewed-by: Rich Salz <rsalz@openssl.org> GH: #1166
This commit is contained in:
parent
3892b95750
commit
8c918b7b9c
|
@ -86,8 +86,7 @@ static int asn1_parse2(BIO *bp, const unsigned char **pp, long length,
|
||||||
dump_indent = 6; /* Because we know BIO_dump_indent() */
|
dump_indent = 6; /* Because we know BIO_dump_indent() */
|
||||||
p = *pp;
|
p = *pp;
|
||||||
tot = p + length;
|
tot = p + length;
|
||||||
op = p - 1;
|
while (length > 0) {
|
||||||
while ((p < tot) && (op < p)) {
|
|
||||||
op = p;
|
op = p;
|
||||||
j = ASN1_get_object(&p, &len, &tag, &xclass, length);
|
j = ASN1_get_object(&p, &len, &tag, &xclass, length);
|
||||||
if (j & 0x80) {
|
if (j & 0x80) {
|
||||||
|
|
Loading…
Reference in New Issue