1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fixed crashing bug in mysqlbinlog

- The fix in mf_iocache2.c was just to fix a compiler warning
This commit is contained in:
Monty
2018-01-03 01:05:25 +02:00
parent 14e01bd868
commit 16cd55a33a
2 changed files with 10 additions and 5 deletions

View File

@@ -266,11 +266,11 @@ my_b_write_backtick_quote(IO_CACHE *info, const char *str, size_t len)
++p;
count= p - start;
if (count && my_b_write(info, start, count))
return (size_t)-1;
return 1;
if (p >= end)
break;
if (my_b_write(info, (uchar *)"``", 2))
return (size_t)-1;
return 1;
++p;
}
return (my_b_write(info, (uchar *)"`", 1));