Commit 4cede4a3 authored by msvensson@pilot.mysql.com's avatar msvensson@pilot.mysql.com
Browse files

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 c1918b04
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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++;