mariadb/client
Davi Arnaut 06a1df9181 Bug#48983: Bad strmake calls (length one too long)
The problem is a somewhat common misusage of the strmake function.
The strmake(dst, src, len) function writes at most /len/ bytes to
the string pointed to by src, not including the trailing null byte.
Hence, if /len/ is the exact length of the destination buffer, a
one byte buffer overflow can occur if the length of the source
string is equal to or greater than /len/.

client/mysqldump.c:
  Make room for the trailing null byte.
libmysql/libmysql.c:
  Add comment, there is enough room in the buffer.
  Increase buffer length, two strings are concatenated.
libmysqld/lib_sql.cc:
  Make room for the trailing null byte.
mysys/default.c:
  Make room for the trailing null bytes.
mysys/mf_pack.c:
  Make room for the trailing null byte.
server-tools/instance-manager/commands.cc:
  Copy only if overflow isn't possible in both cases.
server-tools/instance-manager/listener.cc:
  Make room for the trailing null byte.
sql/log.cc:
  Make room for the trailing null byte.
sql/sp_pcontext.h:
  Cosmetic fix.
sql/sql_acl.cc:
  MAX_HOSTNAME already specifies space for the trailing null byte.
sql/sql_parse.cc:
  Make room for the trailing null byte.
sql/sql_table.cc:
  Make room for the trailing null byte.
2009-12-17 15:58:38 -02:00
..
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
client_priv.h Fixed bug #31077. 2007-10-01 20:35:51 +05:00
CMakeLists.txt Addition to Fix for BUG#46591 - .frm file isn't sync'd with sync_frm enabled 2009-09-04 11:19:44 +05:30
completion_hash.cc Many files: 2006-12-23 20:17:15 +01:00
completion_hash.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
echo.c echo.c: 2007-03-20 18:31:49 +01:00
get_password.c Many files: 2006-12-23 20:17:15 +01:00
Makefile.am Fix for BUG#46591 - .frm file isn't sync'd with sync_frm enabled for 2009-09-03 16:02:03 +05:30
my_readline.h Fix for bug#41486: extra character appears in BLOB for every 2009-03-18 11:18:24 +03:00
mysql.cc Backport fix for Bug #27884. 2009-11-23 14:38:08 -08:00
mysql_upgrade.c Bug #43414 Parenthesis (and other) warnings compiling MySQL 2009-08-28 17:51:31 +02:00
mysqladmin.cc Bug#35132: MySQLadmin --wait ping always crashes on Windows systems 2009-08-31 10:01:13 -07:00
mysqlbinlog.cc Bug #46998 mysqlbinlog can't output BEGIN even if the database is included in a transaction 2009-09-30 10:01:52 +08:00
mysqlcheck.c Bug#29125 Windows Server X64: so many compiler warnings 2009-02-10 17:47:54 -05:00
mysqldump.c Bug#48983: Bad strmake calls (length one too long) 2009-12-17 15:58:38 -02:00
mysqlimport.c Bug #15327: configure: --with-tcp-port option being partially ignored 2007-09-13 16:19:46 +02:00
mysqlmanager-pwgen.c Bug #43414 Parenthesis (and other) warnings compiling MySQL 2009-08-28 17:51:31 +02:00
mysqlmanagerc.c Bug #15327: configure: --with-tcp-port option being partially ignored 2007-09-13 16:19:46 +02:00
mysqlshow.c Bug #15327: configure: --with-tcp-port option being partially ignored 2007-09-13 16:19:46 +02:00
mysqltest.c Merge from mysql-5.0.87-release 2009-10-26 19:20:02 +01:00
readline.cc Fix for bug#41486: extra character appears in BLOB for every 2009-03-18 11:18:24 +03:00
sql_string.cc auto-merge 2009-03-19 09:44:58 -04:00
sql_string.h Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-22 14:04:40 +02:00