1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

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!
This commit is contained in:
Georg Richter
2024-03-22 15:35:21 +01:00
parent 2fc64d791c
commit 4a1c5ef53b

View File

@@ -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 */