mariadb/include/mysql
Olav Sandstaa 77844bd10b Fix for Bug#54478 "mysqld crashes during boot when running mtr with --debug option"
The crash during boot was caused by a DBUG_PRINT statement in fill_schema_schemata() (in
sql_show.cc). This DBUG_PRINT statement contained several instances of %s in the format 
string and for one of these we gave a NULL pointer as the argument. This caused the
call to vsnprintf() to crash when running on Solaris.
      
The fix for this problem is to replace the call to vsnprintf() with my_vsnprintf()
which handles that a NULL pointer is passed as argumens for %s.

This patch also extends my_vsnprintf() to support %i in the format string.

dbug/dbug.c:
  Replace the use of vsnprintf() with my_vsnprintf(). On some platforms
  vsnprintf() did not handle that a NULL pointer was given as an argument
  for a %s in the format string.
include/mysql/service_my_snprintf.h:
  Add support for %i in format string to my_vsnprintf().
strings/my_vsnprintf.c:
  Add support for %i in format string to my_vsnprintf().
unittest/mysys/my_vsnprintf-t.c:
  Add unit tests for %i in format string to my_vsnprintf().
2010-09-15 13:33:22 +02:00
..
psi A pre-requisite patch for the fix for Bug#52044. 2010-08-11 01:12:01 +04:00
innodb_priv.h WL#5030: Splitting mysql_priv.h 2010-04-21 00:29:30 +02:00
plugin.h Auto-merge from mysql-5.5-merge. 2010-08-30 18:07:40 +04:00
plugin_audit.h BUG#47059 - In audit plugin I cannot see the event subclasses, 2010-04-15 13:05:17 +04:00
plugin_audit.h.pp Auto-merge from mysql-5.5-merge. 2010-08-30 18:07:40 +04:00
plugin_ftparser.h Backport from 6.0-codebase. 2009-12-15 23:52:47 +04:00
plugin_ftparser.h.pp Auto-merge from mysql-5.5-merge. 2010-08-30 18:07:40 +04:00
service_my_snprintf.h Fix for Bug#54478 "mysqld crashes during boot when running mtr with --debug option" 2010-09-15 13:33:22 +02:00
service_thd_alloc.h Bug#52514: mysql 5.1 do_abi_check does not compile w/ gcc4.5 2010-07-20 16:34:20 -03:00
service_thd_wait.h WL#5363: Thread Pool Service Interface 2010-06-07 16:01:39 +02:00
service_thread_scheduler.h WL#5363: Thread Pool Service Interface 2010-06-07 16:01:39 +02:00
services.h WL#5363: Thread Pool Service Interface 2010-06-07 16:01:39 +02:00