mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 10:07:56 -05:00
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.
This commit is contained in:
parent
304345e606
commit
afda4781cb
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue