From afda4781cb1886397350d72f2afcdd07366d69fd Mon Sep 17 00:00:00 2001 From: Dwij Mehta Date: Wed, 4 Feb 2026 23:55:41 +0000 Subject: [PATCH] ITS#10430 - do not advance past NUL in get_token() Removed pointer increment in get_token() when handling the '\0' case, preventing out-of-bounds reads. --- libraries/libldap/schema.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/libldap/schema.c b/libraries/libldap/schema.c index bf7986a294..03c2df70b5 100644 --- a/libraries/libldap/schema.c +++ b/libraries/libldap/schema.c @@ -1018,7 +1018,6 @@ get_token( const char ** sp, char ** token_val ) switch (**sp) { case '\0': kind = TK_EOS; - (*sp)++; break; case '(': kind = TK_LEFTPAREN;