]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10430 Do not scroll past nul bytes
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 28 Jan 2026 10:26:35 +0000 (10:26 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 29 Jan 2026 16:14:30 +0000 (16:14 +0000)
libraries/libldap/schema.c

index e64abab0e603a400e655296859b34725e8afa109..bf7986a294bb45036dbf8f269067d06e1befe7f2 100644 (file)
@@ -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)++;
 }