mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
Bug#35986 valgrind warning in DbugParse for empty string in SET GLOBAL DEBUG=""
- Code in DbugParse was reading from beyond end of the control string dbug/dbug.c: Don't try to parse control strings that hasn't got any tokens or is zero size
This commit is contained in:
parent
38d5c213c1
commit
8402740acd
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ static void DbugParse(CODE_STATE *cs, const char *control)
|
||||||
}
|
}
|
||||||
|
|
||||||
end= DbugStrTok(control);
|
end= DbugStrTok(control);
|
||||||
while (1)
|
while (control < end)
|
||||||
{
|
{
|
||||||
int c, sign= (*control == '+') ? 1 : (*control == '-') ? -1 : 0;
|
int c, sign= (*control == '+') ? 1 : (*control == '-') ? -1 : 0;
|
||||||
if (sign) control++;
|
if (sign) control++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue