mariadb/extra/mariabackup
Monty 0ccdf54b64 Check and remove high stack usage
I checked all stack overflow potential problems found with
gcc -Wstack-usage=16384
and
clang -Wframe-larger-than=16384 -no-inline

Fixes:
Added '#pragma clang diagnostic ignored "-Wframe-larger-than="'
  to a lot of function to where stack usage large but resonable.
- Added stack check warnings to BUILD scrips when using clang and debug.

Function changed to use malloc instead allocating things on stack:
- read_bootstrap_query() now allocates line_buffer (20000 bytes) with
  malloc() instead of using stack. This has a small performance impact
  but this is not releant for bootstrap.
- mroonga grn_select() used 65856 bytes on stack. Changed it to use
  malloc().
- Wsrep_schema::replay_transaction() and
  Wsrep_schema::recover_sr_transactions().
- Connect zipOpen3()

Not fixed:
- mroonga/vendor/groonga/lib/expr.c grn_proc_call() uses
  43712 byte on stack.  However this is not easy to fix as the stack
  used is caused by a lot of code generated by defines.
- Most changes in mroonga/groonga where only adding of pragmas to disable
  stack warnings.
- rocksdb/options/options_helper.cc uses 20288 of stack space.
  (no reason to fix except to get rid of the compiler warning)
- Causes using alloca() where the allocation size is resonable.
- An issue in libmariadb (reported to connectors).
2024-04-23 14:12:31 +03:00
..
quicklz
backup_copy.cc MDEV-31251 MDEV-30968 breaks running mariabackup on older mariadb (opendir(NULL)) 2024-04-08 14:56:31 +04:00
backup_copy.h MDEV-31905 GTID inconsistency 2023-12-22 00:10:23 +01:00
backup_debug.h
backup_mysql.cc Merge 10.5 into 10.6 2024-02-13 20:42:59 +02:00
backup_mysql.h Cleanup: Remove changed_pages_bitmap 2024-02-12 17:01:35 +02:00
backup_wsrep.h
CMakeLists.txt Merge 10.5 into 10.6 2024-02-13 20:42:59 +02:00
common.h Fix a case of unused-but-set-variable 2024-02-13 14:00:26 +11:00
datasink.cc Merge 10.2 into 10.3 2021-09-22 18:01:41 +03:00
datasink.h MDEV-31039 mariadb-backup: remove global variables ds_data and ds_meta 2023-04-12 15:14:03 +04:00
ds_buffer.cc
ds_buffer.h
ds_compress.cc Merge 10.4 into 10.5 2022-08-22 13:38:40 +03:00
ds_compress.h
ds_local.cc Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
ds_local.h
ds_stdout.cc
ds_stdout.h
ds_tmpfile.cc
ds_tmpfile.h
ds_xbstream.cc Merge 10.4 into 10.5 2021-09-24 08:42:23 +03:00
ds_xbstream.h
encryption_plugin.cc
encryption_plugin.h
fil_cur.cc Check and remove high stack usage 2024-04-23 14:12:31 +03:00
fil_cur.h MDEV-30179 mariabackup --backup fails with FATAL ERROR: ... failed 2023-01-10 15:47:13 +05:30
innobackupex.cc Merge branch '10.4' into 10.5 2021-07-31 23:19:51 +02:00
innobackupex.h
read_filt.cc Cleanup: Remove changed_pages_bitmap 2024-02-12 17:01:35 +02:00
read_filt.h Cleanup: Remove changed_pages_bitmap 2024-02-12 17:01:35 +02:00
write_filt.cc Merge branch '10.4' into 10.5 2023-04-24 12:43:47 +02:00
write_filt.h MDEV-31039 mariadb-backup: remove global variables ds_data and ds_meta 2023-04-12 15:14:03 +04:00
wsrep.cc MDEV-31905 GTID inconsistency 2023-12-22 00:10:23 +01:00
xb_regex.h
xbcloud.cc Fix few vulnerabilities found by Cppcheck 2023-03-02 14:38:24 +11:00
xbstream.cc Merge 10.4 into 10.5 2021-11-29 11:16:20 +02:00
xbstream.h
xbstream_read.cc
xbstream_write.cc
xtrabackup.cc MDEV-24671 fixup: Remove srv_max_n_threads 2024-02-27 11:14:28 +02:00
xtrabackup.h Merge 10.5 into 10.6 2024-02-13 20:42:59 +02:00