mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
MDEV-7397: SIGSEGV on inserting into a key-less table
When wsrep is enabled, an md5 hash of the entire row is calculated for tables with no PK. It, however segfaulted as the md5 context object was not properly constructed. Fixed by ensuring that the YaSSL's context object gets constructed explicitly at the specified pre-allocated location (placement) before its used. Added a test case.
This commit is contained in:
parent
dc92032fa3
commit
61f73d40ca
3 changed files with 40 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ typedef TaoCrypt::MD5 MD5_CTX;
|
|||
|
||||
static void md5_init(MD5_CTX *context)
|
||||
{
|
||||
context= new(context) MD5_CTX;
|
||||
context->Init();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue