mariadb/storage/mroonga/vendor/groonga/lib
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
..
dat Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
mrb Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
proc Check and remove high stack usage 2024-04-23 14:12:31 +03:00
ts Fixed compiler warnings 2021-06-14 20:37:34 +03:00
alloc.c Merge branch '10.3' into 10.4 2023-01-28 18:22:55 +01:00
arrow.cpp Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
c_sources.am Update Mroonga to the latest version on 2017-10-16T09:50:49+0900 2017-10-16 09:50:49 +09:00
cache.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
CMakeLists.txt Fix Groonga crash on MIPS: Correctly link to libatomic 2021-10-19 19:22:54 +03:00
column.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
com.c Fixed compiler warnings from gcc and clang 5.0.1 2020-05-23 12:29:10 +03:00
command.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
config.c Fixed compiler warnings from gcc and clang 5.0.1 2020-05-23 12:29:10 +03:00
cpp_sources.am Update Mroonga to the latest version on 2017-10-16T09:50:49+0900 2017-10-16 09:50:49 +09:00
ctx.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ctx_impl_mrb.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
dat.cpp Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
db.c Check and remove high stack usage 2024-04-23 14:12:31 +03:00
dump.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
error.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
expr.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
expr_code.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
expr_executor.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
file_lock.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
file_reader.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
geo.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
grn.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
grn_alloc.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_cache.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_com.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_config.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_ctx.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_ctx_impl.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_ctx_impl_mrb.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_dat.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_db.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_ecmascript.c Update Mroonga to the latest version on 2017-10-10T23:15:25+0900 2017-10-10 23:15:25 +09:00
grn_ecmascript.h Update Mroonga to the latest version on 2017-10-10T23:15:25+0900 2017-10-10 23:15:25 +09:00
grn_ecmascript.lemon Update Mroonga to the latest version on 2017-10-10T23:15:25+0900 2017-10-10 23:15:25 +09:00
grn_error.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_expr.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_expr_code.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_expr_executor.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_file_lock.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_geo.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_hash.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_ii.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_index_column.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_io.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_load.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_logger.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_mrb.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_msgpack.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_nfkc.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_normalizer.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_obj.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_output.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_pat.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_plugin.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_proc.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_raw_string.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_report.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_request_canceler.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_request_timer.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_rset.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_scanner.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_scorer.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_scorers.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_snip.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_store.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_str.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_string.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_time.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_token_cursor.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_tokenizers.h Add a counter to avoid multiple initialization of Groonga mecab tokenizer 2020-05-29 21:48:47 +09:00
grn_ts.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_util.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_window_function.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_window_functions.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
grn_windows.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
hash.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
icudump.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
id.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
ii.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
index_column.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
io.c Fix all warnings given by UBSAN 2021-05-19 22:54:14 +02:00
load.c Check and remove high stack usage 2024-04-23 14:12:31 +03:00
logger.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
Makefile.am Update Mroonga to the latest version on 2017-10-16T09:50:49+0900 2017-10-16 09:50:49 +09:00
metadata.rc.in Update Mroonga to the latest version on 2017-10-10T23:15:25+0900 2017-10-10 23:15:25 +09:00
mrb.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
nfkc-custom-rules.txt Update Mroonga to the latest version on 2014-09-21T00:33:44+0900 2014-09-21 00:33:45 +09:00
nfkc.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
nfkc.rb Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
nfkc50.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
normalizer.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
obj.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
operator.c Check and remove high stack usage 2024-04-23 14:12:31 +03:00
output.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
pat.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
plugin.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
proc.c Fixed compiler warnings from gcc and clang 5.0.1 2020-05-23 12:29:10 +03:00
raw_string.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
report.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
request_canceler.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
request_timer.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rset.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
scanner.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
scorer.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
scorers.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
snip.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
store.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
str.c Fix all warnings given by UBSAN 2021-04-20 12:30:09 +03:00
string.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
table.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thread.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
time.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
token_cursor.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
token_filter.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
tokenizer.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
tokenizers.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
ts.c Fixed some errors & warnings found by clang 2019-08-08 23:08:23 +03:00
type.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
util.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
window_function.c Remove compiler warnings regarding signed/unsigned compare in mroonga 2021-05-19 22:27:27 +02:00
window_functions.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
windows.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
windows_event_logger.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00