mariadb/mysql-test/suite/binlog
Brandon Nesterenko a6dd4cbeff MDEV-37885: Server crash or ASAN errors in rpl_binlog_state::drop_domain
The server crashes with a segfault when trying to drop duplicate
domain ids in the same command, e.g.
FLUSH BINARY LOGS DELETE_DOMAIN_ID=(0), BINARY LOGS DELETE_DOMAIN_ID=(0)

This is because a pointer is referenced at the wrong level. When
dropping domain ids, first the code builds a list of unique domain ids
to drop, and the actual deletion uses the domain ids from this unique
list. However, the logic which checks for uniqueness references
elements in the existing list of unique domain ids at the wrong level.
That is, the type of the unique domain id list is a pointer to
rpl_binlog_state::element (i.e. (rpl_binlog_state::element*)). The code
uses dynamic_array_ptr to reference its elements, which is a pointer
to one of these elements, i.e. (rpl_binlog_state::element**), but
the code treated it as a single-level pointer.

This code fixes the return from dynamic_array_ptr to be a
double-pointer.
2025-10-17 13:44:19 -06:00
..
include MDEV-35350: Backport search_pattern_in_file.inc SEARCH_WAIT to 10.5 2024-11-12 05:54:50 -07:00
r MDEV-37885: Server crash or ASAN errors in rpl_binlog_state::drop_domain 2025-10-17 13:44:19 -06:00
std_data MDEV-5115 RBR from MySQL 5.6 to MariaDB 10.0 does not work 2013-12-09 12:37:45 +01:00
t MDEV-37885: Server crash or ASAN errors in rpl_binlog_state::drop_domain 2025-10-17 13:44:19 -06:00
combinations WL#4350 Options in my.cnf style config file should not start with -- 2008-09-05 15:31:09 +02:00
disabled.def MDEV-30940: Revert "binlog.innodb_rc_insert_before_delete is disabled with MDEV-30490" 2023-01-30 21:28:21 +01:00