mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix for bug #21142: Malformed insert causes a segmentation fault.
- possible stack overflow fixed.
This commit is contained in:

parent
45460bd0af
commit
f25b8f20d2
@ -2615,7 +2615,7 @@ com_connect(String *buffer, char *line)
|
|||||||
bzero(buff, sizeof(buff));
|
bzero(buff, sizeof(buff));
|
||||||
if (buffer)
|
if (buffer)
|
||||||
{
|
{
|
||||||
strmov(buff, line);
|
strmake(buff, line, sizeof(buff) - 1);
|
||||||
tmp= get_arg(buff, 0);
|
tmp= get_arg(buff, 0);
|
||||||
if (tmp && *tmp)
|
if (tmp && *tmp)
|
||||||
{
|
{
|
||||||
@ -2729,7 +2729,7 @@ com_use(String *buffer __attribute__((unused)), char *line)
|
|||||||
char *tmp, buff[FN_REFLEN + 1];
|
char *tmp, buff[FN_REFLEN + 1];
|
||||||
|
|
||||||
bzero(buff, sizeof(buff));
|
bzero(buff, sizeof(buff));
|
||||||
strmov(buff, line);
|
strmake(buff, line, sizeof(buff) - 1);
|
||||||
tmp= get_arg(buff, 0);
|
tmp= get_arg(buff, 0);
|
||||||
if (!tmp || !*tmp)
|
if (!tmp || !*tmp)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user