1
0
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:
David Hall
2020-06-19 17:33:45 -05:00
parent 64a4659508
commit 1499433043

View File

@ -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