You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +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;
|
const char* end = pos + binLen;
|
||||||
|
|
||||||
char* pbuf = new char[binLen + 1];
|
char* pbuf = new char[binLen + 1];
|
||||||
|
pbuf[binLen] = 0;
|
||||||
char* tmp = pbuf + binLen;
|
char* tmp = pbuf + binLen;
|
||||||
|
|
||||||
if (cs->use_mb()) // uses multi-byte characters
|
if (cs->use_mb()) // uses multi-byte characters
|
||||||
|
Reference in New Issue
Block a user