"software/davstorage/common.cfg" did not exist on "284cbb232b596b20ed89ab619eda2800ece4f121"

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
parent 806b107a
......@@ -493,7 +493,7 @@ static void DbugParse(CODE_STATE *cs, const char *control)
}
end= DbugStrTok(control);
while (1)
while (control < end)
{
int c, sign= (*control == '+') ? 1 : (*control == '-') ? -1 : 0;
if (sign) control++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment