From 2c5388b2da73f4293b3b6c236b2de597b6272d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Wed, 28 Jan 2026 10:26:35 +0000 Subject: [PATCH] ITS#10430 Do not scroll past nul bytes --- libraries/libldap/schema.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/schema.c b/libraries/libldap/schema.c index e64abab0e6..bf7986a294 100644 --- a/libraries/libldap/schema.c +++ b/libraries/libldap/schema.c @@ -1087,7 +1087,7 @@ get_token( const char ** sp, char ** token_val ) static void parse_whsp(const char **sp) { - while (LDAP_SPACE(**sp)) + while ( **sp && LDAP_SPACE(**sp)) (*sp)++; }