mariadb/client
Shishir Jaiswal 9d72fb4af0 Bug#21977380 - POSSIBLE BUFFER OVERFLOW ISSUES
DESCRIPTION
===========
Buffer overflow is reported in a lot of code sections
spanning across server, client programs, Regex libraries
etc. If not handled appropriately, they can cause abnormal
behaviour.

ANALYSIS
========
The reported casea are the ones which are likely to result
in SEGFAULT, MEMORY LEAK etc.

FIX
===
- sprintf() has been replaced by my_snprintf() to avoid
buffer overflow.
- my_free() is done after checking if the pointer isn't
  NULL already and setting it to NULL thereafter at few
  places.
- Buffer is ensured to be large enough to hold the data.
- 'unsigned int' (aka 'uint') is replaced with 'size_t'
to avoid wraparound.
- Memory is freed (if not done so) after its alloced and
used.
- Inserted assert() for size check in InnoDb memcached
code (from 5.6 onwards)
- Other minor changes

(cherry picked from commit 3487e20959c940cbd24429afa795ebfc8a01e94f)
2016-05-16 11:33:57 +02:00
..
client_priv.h WL#9072: Backport WL#8785 to 5.5 2016-02-19 23:31:10 +04:00
CMakeLists.txt Bug #20772273 : MYSQLIMPORT --USE-THREADS DOESN'T USE 2015-06-30 10:27:12 +05:30
completion_hash.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
completion_hash.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
echo.c Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
get_password.c Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
my_readline.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mysql.cc WL#9072: Backport WL#8785 to 5.5 2016-02-19 23:31:10 +04:00
mysql_plugin.c Bug#21973610: BUFFER OVERFLOW ISSUES 2015-11-06 16:41:55 +05:30
mysql_upgrade.c WL#9072: Backport WL#8785 to 5.5 2016-02-19 23:31:10 +04:00
mysqladmin.cc WL#9072: Backport WL#8785 to 5.5 2016-02-19 23:31:10 +04:00
mysqlbinlog.cc Bug #18808072 MYSQLBINLOG USES LOCALTIME() TO PRINT EVENTS, CAUSES KERNEL MUTEX CONTENTION 2014-10-08 21:54:35 +05:30
mysqlcheck.c Bug#21977380 - POSSIBLE BUFFER OVERFLOW ISSUES 2016-05-16 11:33:57 +02:00
mysqldump.c Bug#21977380 - POSSIBLE BUFFER OVERFLOW ISSUES 2016-05-16 11:33:57 +02:00
mysqlimport.c WL#9072: Backport WL#8785 to 5.5 2016-02-19 23:31:10 +04:00
mysqlshow.c Bug#21977380 - POSSIBLE BUFFER OVERFLOW ISSUES 2016-05-16 11:33:57 +02:00
mysqlslap.c WL#9072: Backport WL#8785 to 5.5 2016-02-19 23:31:10 +04:00
mysqltest.cc WL#9072: Backport WL#8785 to 5.5 2016-02-19 23:31:10 +04:00
readline.cc Build broken for gcc 4.5.1 in optimized mode. 2011-11-29 15:52:47 +01:00
sql_string.cc Updated/added copyright headers 2013-02-26 06:35:17 +01:00
sql_string.h BUG#14593883-REPLICATION BREAKS WHEN SET DATA TYPE 2013-03-13 16:29:11 +05:30