mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug#31752: check strmake() bounds
strmake() called with wrong parameters: 5.0-specific fixes.
This commit is contained in:
parent
f91cf9c7cf
commit
883338a949
@@ -2987,7 +2987,10 @@ com_connect(String *buffer, char *line)
|
||||
Two null bytes are needed in the end of buff to allow
|
||||
get_arg to find end of string the second time it's called.
|
||||
*/
|
||||
strmake(buff, line, sizeof(buff)-2);
|
||||
tmp= strmake(buff, line, sizeof(buff)-2);
|
||||
#ifdef EXTRA_DEBUG
|
||||
tmp[1]= 0;
|
||||
#endif
|
||||
tmp= get_arg(buff, 0);
|
||||
if (tmp && *tmp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user