mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
allocate a buffer large enough for a longer matching string
This commit is contained in:
@@ -155,7 +155,7 @@ static void _ftb_parse_query(FTB *ftb, byte **start, byte *end,
|
|||||||
ftbw=(FTB_WORD *)alloc_root(&ftb->mem_root,
|
ftbw=(FTB_WORD *)alloc_root(&ftb->mem_root,
|
||||||
sizeof(FTB_WORD) +
|
sizeof(FTB_WORD) +
|
||||||
(param.trunc ? MI_MAX_KEY_BUFF :
|
(param.trunc ? MI_MAX_KEY_BUFF :
|
||||||
w.len+extra));
|
w.len*ftb->charset->mbmaxlen+extra));
|
||||||
ftbw->len=w.len+1;
|
ftbw->len=w.len+1;
|
||||||
ftbw->flags=0;
|
ftbw->flags=0;
|
||||||
ftbw->off=0;
|
ftbw->off=0;
|
||||||
|
Reference in New Issue
Block a user