mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
UBSAN: UndefinedBehaviorSanitizer: undefined-behavior ../sql/item_cmpfunc.cc:3650:14
This commit is contained in:
parent
0aef658dfa
commit
01ffccd6a4
1 changed files with 4 additions and 1 deletions
|
@ -4153,8 +4153,11 @@ void Item_func_in::fix_after_pullout(st_select_lex *new_parent, Item **ref,
|
|||
eval_not_null_tables(NULL);
|
||||
}
|
||||
|
||||
static int srtcmp_in(CHARSET_INFO *cs, const String *x,const String *y)
|
||||
static int srtcmp_in(const void *cs_, const void *x_, const void *y_)
|
||||
{
|
||||
const CHARSET_INFO *cs= static_cast<const CHARSET_INFO *>(cs_);
|
||||
const String *x= static_cast<const String *>(x_);
|
||||
const String *y= static_cast<const String *>(y_);
|
||||
return cs->coll->strnncollsp(cs,
|
||||
(uchar *) x->ptr(),x->length(),
|
||||
(uchar *) y->ptr(),y->length());
|
||||
|
|
Loading…
Reference in a new issue