You've already forked mariadb-connector-c
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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user