Commit 4635047c authored by Sergei Petrunia's avatar Sergei Petrunia

MDEV-21341: Fix UBSAN failures, part #5

Item_cond inherits from Item_args but doesn't store its arguments
as function arguments, which means it has zero arguments.
Don't call memcpy in this case.
parent 5e5ae51b
......@@ -109,6 +109,7 @@ Item_args::Item_args(THD *thd, const Item_args *other)
arg_count= 0;
return;
}
if (arg_count)
memcpy(args, other->args, sizeof(Item*) * arg_count);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment