From 9731103ffb4a12994aa7fd2dbccfeab55884b26e Mon Sep 17 00:00:00 2001 From: Nadezhda Ivanova Date: Fri, 19 Sep 2025 16:11:17 +0300 Subject: [PATCH] ITS#10390 ldif_parse_line2 calculates an incorrect length of the attribute type --- libraries/libldap/ldif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/ldif.c b/libraries/libldap/ldif.c index 1dc48b491b..809c579ad5 100644 --- a/libraries/libldap/ldif.c +++ b/libraries/libldap/ldif.c @@ -134,7 +134,7 @@ ldif_parse_line2( *p = '\0'; } *s++ = '\0'; - type->bv_len = s - type->bv_val - 1; + type->bv_len = p - type->bv_val + 1; url = 0; b64 = 0; -- 2.47.3