提交 5e3553c2 编写于 作者: K Kurt Roeckx

Return error when trying to print invalid ASN1 integer

Reviewed-by: NRich Salz <rsalz@openssl.org>
GH: #1322
上级 85afea67
......@@ -393,6 +393,8 @@ static int asn1_print_integer(BIO *out, ASN1_INTEGER *str)
char *s;
int ret = 1;
s = i2s_ASN1_INTEGER(NULL, str);
if (s == NULL)
return 0;
if (BIO_puts(out, s) <= 0)
ret = 0;
OPENSSL_free(s);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册