mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge remote-tracking branch 'origin/11.4' into 11.5
This commit is contained in:
@@ -2573,6 +2573,8 @@ bool THD::copy_with_error(CHARSET_INFO *dstcs, LEX_STRING *dst,
|
||||
CHARSET_INFO *srccs,
|
||||
const char *src, size_t src_length) const
|
||||
{
|
||||
// Don't allow NULL to avoid UB in the called functions: nullptr+0
|
||||
DBUG_ASSERT(src);
|
||||
String_copier_with_error status;
|
||||
return copy_fix(dstcs, dst, srccs, src, src_length, &status) ||
|
||||
status.check_errors(srccs, src, src_length);
|
||||
|
Reference in New Issue
Block a user