From 8fad25f043c3a0bd7f94c15d0b2b2785d951295d Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 27 Jan 2025 10:29:41 +0000 Subject: X509_NAME_print(): remove no longer useful length check This was needed to avoid truncation on BIO_write(). With the switch to BIO_printf() in the previous commit this is no longer needed. --- src/lib/libcrypto/asn1/t_x509.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c index d71e2d2e9a..3181dd2907 100644 --- a/src/lib/libcrypto/asn1/t_x509.c +++ b/src/lib/libcrypto/asn1/t_x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: t_x509.c,v 1.49 2025/01/27 08:05:02 tb Exp $ */ +/* $OpenBSD: t_x509.c,v 1.50 2025/01/27 10:29:41 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -555,9 +555,6 @@ X509_NAME_print(BIO *bio, const X509_NAME *name, int obase) if (!CBB_finish(&cbb, &buf, &buf_len)) goto err; - if (buf_len > INT_MAX) - goto err; - if (BIO_printf(bio, "%s", buf) < 0) goto err; -- cgit v1.2.3-55-g6feb