mariadb/sql
Tor Didriksen b522a6ce78 Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS
handle_segfault is the signal handler code of mysqld.  however, it makes
calls to potentially unsafe functions localtime_r, fprintf, fflush.



include/my_stacktrace.h:
  Add safe versions of itoa() write() and snprintf().
libmysqld/CMakeLists.txt:
  Move signal handler to separate file.
mysys/stacktrace.c:
  Remove unsafe function calls.
sql/CMakeLists.txt:
  Move signal handler to separate file.
sql/mysqld.cc:
  Move signal handler to separate file.
sql/set_var.h:
  Add missing #include dependency.
sql/sys_vars.cc:
  Cleanup .h and .cc files.
sql/sys_vars.h:
  Cleanup .h and .cc files.
2011-12-02 14:16:48 +01:00
..
examples
share
add_errmsg
authors.h
client_settings.h
CMakeLists.txt Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS 2011-12-02 14:16:48 +01:00
contributors.h
custom_conf.h
datadict.cc
datadict.h
debug_sync.cc
debug_sync.h
derror.cc
derror.h
des_key_file.cc
des_key_file.h
discover.cc
discover.h
event_data_objects.cc
event_data_objects.h
event_db_repository.cc
event_db_repository.h
event_parse_data.cc
event_parse_data.h
event_queue.cc
event_queue.h
event_scheduler.cc
event_scheduler.h
events.cc
events.h
field.cc
field.h Merge BUG#12997905 from 5.1 to 5.5 2011-11-18 14:53:54 +01:00
field_conv.cc Merge BUG#12997905 from 5.1 to 5.5 2011-11-18 14:53:54 +01:00
filesort.cc
filesort.h
frm_crypt.cc
frm_crypt.h
gen_lex_hash.cc
gstream.cc
gstream.h
ha_ndbcluster.cc
ha_ndbcluster.h
ha_ndbcluster_binlog.cc
ha_ndbcluster_binlog.h
ha_ndbcluster_cond.cc
ha_ndbcluster_cond.h
ha_ndbcluster_tables.h
ha_partition.cc
ha_partition.h
handler.cc
handler.h
hash_filo.cc
hash_filo.h
hostname.cc
hostname.h
init.cc
init.h
item.cc
item.h
item_buff.cc
item_cmpfunc.cc
item_cmpfunc.h
item_create.cc
item_create.h
item_func.cc Bug#13261955 TRUNCATE(DBL_MAX) RETURNS DBL_MAX RATHER THAN 'INF' 2011-11-15 10:01:29 +01:00
item_func.h
item_geofunc.cc
item_geofunc.h
item_row.cc
item_row.h
item_strfunc.cc
item_strfunc.h
item_subselect.cc
item_subselect.h
item_sum.cc
item_sum.h
item_timefunc.cc
item_timefunc.h
item_xmlfunc.cc
item_xmlfunc.h
key.cc
key.h
keycaches.cc
keycaches.h
lex.h
lex_symbol.h
lock.cc
lock.h
log.cc Build broken for gcc 4.5.1 in optimized mode. 2011-11-29 15:52:47 +01:00
log.h BUG#11745230: 12133: MASTER.INDEX FILE KEEPS MYSQLD FROM STARTING IF 2011-11-24 17:15:58 +00:00
log_event.cc BUG#11760927 2011-11-15 14:38:58 +00:00
log_event.h
log_event_old.cc
log_event_old.h
main.cc
mdl.cc Fix for bug#12695572 - "IMPROVE MDL PERFORMANCE IN PRE-VISTA 2011-11-15 22:00:14 +04:00
mdl.h Fix for bug#12695572 - "IMPROVE MDL PERFORMANCE IN PRE-VISTA 2011-11-15 22:00:14 +04:00
message.h
message.mc
message.rc
mf_iocache.cc
MSG00001.bin
my_decimal.cc
my_decimal.h
mysqld.cc Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS 2011-12-02 14:16:48 +01:00
mysqld.h BUG#11745230: 12133: MASTER.INDEX FILE KEEPS MYSQLD FROM STARTING IF 2011-11-24 17:15:58 +00:00
mysqld_suffix.h
net_serv.cc
nt_servc.cc
nt_servc.h
opt_range.cc
opt_range.h
opt_sum.cc
parse_file.cc
parse_file.h
partition_element.h
partition_info.cc
partition_info.h
password.c
procedure.cc
procedure.h
protocol.cc
protocol.h
records.cc
records.h
repl_failsafe.cc
repl_failsafe.h
replication.h
rpl_constants.h
rpl_filter.cc
rpl_filter.h
rpl_handler.cc
rpl_handler.h
rpl_injector.cc
rpl_injector.h
rpl_mi.cc
rpl_mi.h
rpl_record.cc
rpl_record.h
rpl_record_old.cc
rpl_record_old.h
rpl_reporting.cc
rpl_reporting.h
rpl_rli.cc BUG#11760927 2011-11-16 01:18:03 +00:00
rpl_rli.h
rpl_tblmap.cc
rpl_tblmap.h
rpl_utility.cc
rpl_utility.h
scheduler.cc
scheduler.h
set_var.cc
set_var.h Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS 2011-12-02 14:16:48 +01:00
sha2.cc
signal_handler.cc Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS 2011-12-02 14:16:48 +01:00
slave.cc reverting the initial patch for bug#13437900 for refinement. 2011-11-29 22:30:04 +02:00
slave.h
sp.cc
sp.h
sp_cache.cc
sp_cache.h
sp_head.cc
sp_head.h
sp_pcontext.cc
sp_pcontext.h
sp_rcontext.cc
sp_rcontext.h
spatial.cc
spatial.h
sql_acl.cc
sql_acl.h
sql_admin.cc
sql_admin.h
sql_alter.cc
sql_alter.h
sql_analyse.cc
sql_analyse.h
sql_array.h
sql_audit.cc
sql_audit.h
sql_base.cc
sql_base.h
sql_binlog.cc
sql_binlog.h
sql_bitmap.h
sql_builtin.cc.in
sql_cache.cc
sql_cache.h
sql_callback.h
sql_class.cc
sql_class.h
sql_client.cc
sql_connect.cc
sql_connect.h
sql_const.h
sql_crypt.cc
sql_crypt.h
sql_cursor.cc
sql_cursor.h
sql_db.cc
sql_db.h
sql_delete.cc
sql_delete.h
sql_derived.cc
sql_derived.h
sql_do.cc
sql_do.h
sql_error.cc
sql_error.h
sql_handler.cc
sql_handler.h
sql_help.cc
sql_help.h
sql_hset.h
sql_insert.cc Bug#11748731:SOME 'BIG' TESTS FAILING ON 6.0 2011-11-21 17:07:08 +05:30
sql_insert.h
sql_lex.cc reverting the initial patch for bug#13437900 for refinement. 2011-11-29 22:30:04 +02:00
sql_lex.h reverting the initial patch for bug#13437900 for refinement. 2011-11-29 22:30:04 +02:00
sql_list.cc
sql_list.h
sql_load.cc
sql_load.h
sql_locale.cc
sql_locale.h
sql_manager.cc
sql_manager.h
sql_parse.cc Merge from mysql-5.5.18-release 2011-11-17 09:00:58 +01:00
sql_parse.h
sql_partition.cc
sql_partition.h
sql_partition_admin.cc
sql_partition_admin.h
sql_plist.h Fix for bug#12695572 - "IMPROVE MDL PERFORMANCE IN PRE-VISTA 2011-11-15 22:00:14 +04:00
sql_plugin.cc
sql_plugin.h
sql_plugin_services.h
sql_prepare.cc
sql_prepare.h
sql_priv.h
sql_profile.cc
sql_profile.h
sql_reload.cc Merge from mysql-5.5.18-release 2011-11-17 09:00:58 +01:00
sql_reload.h
sql_rename.cc
sql_rename.h
sql_repl.cc reverting the initial patch for bug#13437900 for refinement. 2011-11-29 22:30:04 +02:00
sql_repl.h
sql_select.cc Merge BUG#12997905 from 5.1 to 5.5 2011-11-18 14:53:54 +01:00
sql_select.h
sql_servers.cc
sql_servers.h
sql_show.cc
sql_show.h
sql_signal.cc
sql_signal.h
sql_sort.h
sql_state.c
sql_string.cc
sql_string.h
sql_table.cc Bug#11748731:SOME 'BIG' TESTS FAILING ON 6.0 2011-11-21 17:07:08 +05:30
sql_table.h
sql_tablespace.cc
sql_tablespace.h
sql_test.cc
sql_test.h
sql_time.cc
sql_time.h
sql_trigger.cc
sql_trigger.h
sql_truncate.cc
sql_truncate.h
sql_udf.cc
sql_udf.h
sql_union.cc
sql_union.h
sql_update.cc
sql_update.h
sql_view.cc
sql_view.h
sql_yacc.yy reverting the initial patch for bug#13437900 for refinement. 2011-11-29 22:30:04 +02:00
strfunc.cc
strfunc.h
structs.h
sys_vars.cc Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS 2011-12-02 14:16:48 +01:00
sys_vars.h Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS 2011-12-02 14:16:48 +01:00
sys_vars_shared.h
table.cc
table.h
thr_malloc.cc
thr_malloc.h
transaction.cc
transaction.h
tzfile.h
tztime.cc
tztime.h
udf_example.c
udf_example.def
uniques.cc
unireg.cc
unireg.h