提交 8c918b7b 编写于 作者: K Kurt Roeckx

Avoid creating an illegal pointer.

Found by tis-interpreter
Reviewed-by: NRich Salz <rsalz@openssl.org>

GH: #1166
上级 3892b957
......@@ -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() */
p = *pp;
tot = p + length;
op = p - 1;
while ((p < tot) && (op < p)) {
while (length > 0) {
op = p;
j = ASN1_get_object(&p, &len, &tag, &xclass, length);
if (j & 0x80) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册