blob: ece8ef1763ce4c81f6562ecddde7878196552247 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Unsifficient limit check aims to security issue.
MariaDB upstream fix: http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/2502.565.64
RHBZ#1059545
diff -up mysql-5.6.15/client/mysql.cc.bz1059545 mysql-5.6.15/client/mysql.cc
--- mysql-5.6.15/client/mysql.cc.bz1059545 2014-01-30 18:09:47.209588217 +0100
+++ mysql-5.6.15/client/mysql.cc 2014-01-30 18:09:59.016581192 +0100
@@ -1315,7 +1315,7 @@ int main(int argc,char *argv[])
put_info("Welcome to the MySQL monitor. Commands end with ; or \\g.",
INFO_INFO);
- sprintf((char*) glob_buffer.ptr(),
+ my_snprintf((char*) glob_buffer.ptr(), glob_buffer.alloced_length(),
"Your MySQL connection id is %lu\nServer version: %s\n",
mysql_thread_id(&mysql), server_version_string(&mysql));
put_info((char*) glob_buffer.ptr(),INFO_INFO);
|