From 4a1c5ef53b8dac04a445a972121a1d0a6655f21c Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Fri, 22 Mar 2024 15:35:21 +0100 Subject: [PATCH] CONC-688: mariadb_rpl_fetch() crashes if table is partitioned Follow up fix of CONC-657 where we didn't set offset of event content correctly. Thanks to Sruli Ganor! --- libmariadb/mariadb_rpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmariadb/mariadb_rpl.c b/libmariadb/mariadb_rpl.c index 163c9723..0ed91bb8 100644 --- a/libmariadb/mariadb_rpl.c +++ b/libmariadb/mariadb_rpl.c @@ -1830,7 +1830,7 @@ MARIADB_RPL_EVENT * STDCALL mariadb_rpl_fetch(MARIADB_RPL *rpl, MARIADB_RPL_EVEN if (rpl_event->event.rows.extra_data_size - 2 > 0) { rpl_alloc_set_string_and_len(rpl_event, rpl_event->event.rows.extra_data, ev, rpl_event->event.rows.extra_data_size - 2); - ev+= rpl_event->event.rows.extra_data_size; + ev+= (rpl_event->event.rows.extra_data_size -2); } } /* END_ROWS_EVENT_V2 */