mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Extra safety fixes (probably not needed, but can't hurt)
This commit is contained in:
@@ -1147,8 +1147,7 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
|
||||
races with query_length
|
||||
*/
|
||||
uint length= min(max_query_length, tmp->query_length);
|
||||
thd_info->query=(char*) thd->memdup(tmp->query,length+1);
|
||||
thd_info->query[length]=0;
|
||||
thd_info->query=(char*) thd->strmake(tmp->query,length);
|
||||
}
|
||||
thread_infos.append(thd_info);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user