mariadb/storage
Jan Lindström fb49d8aa42 MDEV-30732 : wsrep_store_key_val_for_row() may invoke memcpy() on nullptr
Problem was that row_mysql_read_blob_ref can return NULL
in case when blob datatype is used in a key and its real
value is NULL. This NULL pointer is then used in memcpy
function in wsrep_store_key_val_for_row. However,
memcpy is defined so that argument 2 must not be NULL.

Fixed by adding conditions before memcpy functions so
that argument 2 is always non NULL.

Additional fixes after review
- Removed unnecessary copying key data from one buffer to another.
Use original key data buffer as input and temporary buffer as output.
Extra output buffer is needed because strnxfrm might expand input buffer
contents.
- Removed unnecessary initialization of variables and move
declaration where first time needed.
- Removed unnecessary intitialization of temporary buffer because
we already keep track actual filled length.
- Remove unneccessary extra call to charset->strnxfrm
2025-11-11 12:43:19 +02:00
..
archive
blackhole MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
columnstore Merge branch '10.6' into 10.11 2025-10-22 09:44:15 +02:00
connect MDEV-37633 Connect UDF functions push empty string warning. 2025-09-12 16:29:04 +10:00
csv Merge 10.6 into 10.11 2025-08-22 06:47:54 +03:00
example MDEV-36729: ha_example::show_func_example is incorrectly defined 2025-05-29 10:10:52 +10:00
federated Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
federatedx MDEV-29874: FederatedX error 10000 on multi-table UPDATE/DELETE 2025-10-22 15:35:54 +07:00
heap Merge 10.5 into 10.6 2025-01-20 09:57:37 +02:00
innobase MDEV-30732 : wsrep_store_key_val_for_row() may invoke memcpy() on nullptr 2025-11-11 12:43:19 +02:00
maria Merge branch '10.6' into 10.11 2025-10-22 09:44:15 +02:00
mroonga Fix compiler warnings 2025-09-30 12:06:31 +03:00
myisam Merge branch '10.6' into 10.11 2025-09-12 13:08:40 +02:00
myisammrg Merge 10.6 into 10.11 2025-01-08 12:51:26 +02:00
oqgraph Merge 10.6 into 10.11 2024-11-29 13:43:17 +02:00
perfschema Merge 10.6 into 10.11 2025-08-22 06:47:54 +03:00
rocksdb MDEV-36010 - fix myrocks_hotbackup for python3 2025-10-14 11:12:48 +11:00
sequence
sphinx Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
spider fix spider/bugfix.mdev_22979 test 2025-11-03 13:59:36 +01:00
test_sql_discovery