1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
mariadb/tests
Vladislav Vaintroub fcd3f81e08 MDEV-37556 Memory leak in proxy protocol with name resolution enabled
When proxy protocol is used and --skip-name-resolve is not set,
thd_set_peer_addr() is called twice per connection: once for the real TCP peer (in check_connection),
and again for the proxied address (in handle_proxy_header).
Each call invokes ip_to_hostname(), which allocates a hostname string
(unless loopback connection is used) and stores it as
thd->main_security_ctx.host. That code missed to free previously
allocated hostname, which results into memory leak.

This is now fixed. Also added debug-only test to mysql_client_test, which
fakes DNS and IP resolution the same way some perfschema tests do, to
emulate remote TCP connection in MTR.
2026-06-10 15:48:48 +02:00
..
2020-07-02 09:41:44 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2020-09-29 16:59:36 +05:30
2020-06-23 03:24:46 +02:00
2020-09-24 08:09:56 +10:00
2020-09-29 16:59:36 +05:30
2020-09-29 16:59:36 +05:30
…
2020-09-29 16:59:36 +05:30
2019-05-11 21:29:06 +03:00
2020-06-23 03:24:46 +02:00
2020-09-29 16:59:36 +05:30
2020-09-29 16:59:36 +05:30
2020-09-29 16:59:36 +05:30
2019-05-11 21:29:06 +03:00
2020-06-23 03:24:46 +02:00
2024-12-11 14:46:43 +02:00
2020-09-29 16:59:36 +05:30