You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-2221 Terminate the buffer
This commit is contained in:
@ -64,6 +64,7 @@ std::string Func_reverse::getStrVal(rowgroup::Row& row,
|
||||
const char* end = pos + binLen;
|
||||
|
||||
char* pbuf = new char[binLen + 1];
|
||||
pbuf[binLen] = 0;
|
||||
char* tmp = pbuf + binLen;
|
||||
|
||||
if (cs->use_mb()) // uses multi-byte characters
|
||||
|
Reference in New Issue
Block a user