1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
mariadb/include
Mikhail Pochatkin cbcff6324a MDEV-39173 Replace sprintf with snprintf, remove deprecated pragma
Remove the unscoped #pragma GCC diagnostic ignored
"-Wdeprecated-declarations" from include/violite.h and replace all
sprintf/vsprintf calls with snprintf/vsnprintf across the codebase.

Where possible, pass actual buffer sizes as function parameters
instead of using hardcoded constants or recomputing strlen().
Notable API changes:
- get_date(): added to_len parameter for buffer size
- nice_time(), end_timer() in client/mysql.cc: added buff_size
- generate_new_name(): added name_size parameter
- calc_md5(): added buffer_size parameter (fixes off-by-one)
- MD5_HASH_TO_STRING macro: added _size parameter
- Added MYSQL_UDF_MAX_RESULT_LENGTH constant in mysql_com.h

Also fixed a pre-existing bug in sql/rpl_mi.cc where the ellipsis
"..." was written to the wrong buffer (dbuff instead of buff).

Vendored code is excluded: extra/readline, extra/wolfssl,
wsrep-lib, libmariadb, storage/mroonga/vendor, zlib.
2026-04-16 19:00:12 +10:00
..
2025-08-22 06:47:54 +03:00
2022-02-09 19:13:52 +01:00
2019-05-11 19:25:02 +03:00
2022-01-21 16:02:34 +01:00
2024-11-29 13:43:17 +02:00
2025-11-11 10:29:45 +02:00
2019-05-11 22:19:05 +03:00
2019-05-11 19:25:02 +03:00
2023-12-18 11:19:04 +01:00
2023-01-03 17:08:42 +02:00
2020-06-19 19:43:07 +02:00
2022-11-08 17:01:28 +02:00
2023-12-18 11:19:04 +01:00
2023-04-24 12:43:47 +02:00
2023-02-10 13:03:01 +02:00
2024-03-28 09:16:57 +02:00
2019-05-11 22:19:05 +03:00
2023-11-08 12:59:00 +01:00
2019-05-11 22:19:05 +03:00
2026-01-02 11:06:05 +02:00
2022-12-20 08:55:48 +11:00
2023-01-04 14:52:25 +02:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 21:29:06 +03:00
2022-07-31 14:54:37 +02:00
2019-05-14 17:18:46 +03:00
2019-05-11 21:29:06 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 22:19:05 +03:00
2025-09-04 18:08:39 +03:00
2019-05-19 20:55:37 +02:00
2019-05-11 22:19:05 +03:00
2020-10-29 13:38:38 +02:00
2023-12-18 11:19:04 +01:00
…
2020-03-10 19:24:22 +01:00
2020-03-10 19:24:22 +01:00
2020-03-10 19:24:22 +01:00
2020-03-10 19:24:22 +01:00
2020-03-10 19:24:22 +01:00
2020-03-10 19:24:22 +01:00
2020-03-10 19:24:22 +01:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2023-12-17 11:20:43 +01:00
2019-05-11 21:29:06 +03:00
2022-12-20 08:55:48 +11:00
2019-05-11 21:29:06 +03:00
2019-05-14 17:18:46 +03:00