mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Fixed error (tnx. artpaul) [#METR-23793].
This commit is contained in:
parent
1311b93c9c
commit
989d542f66
@ -109,9 +109,13 @@ void DecodeURLComponentImpl::vector(const ColumnString::Chars_t & data, const Co
|
||||
void DecodeURLComponentImpl::constant(const std::string & str,
|
||||
std::string & res_data)
|
||||
{
|
||||
res_data.resize(str.size() + 15); /// This is needed for memcpySmallAllowReadWriteOverflow15 function, that is used inside decodeURL.
|
||||
size_t len = decodeURL(str.data(), str.size(), &res_data[0]);
|
||||
res_data.resize(len);
|
||||
ColumnString src;
|
||||
ColumnString dst;
|
||||
src.insert(str);
|
||||
|
||||
vector(src.getChars(), src.getOffsets(), dst.getChars(), dst.getOffsets());
|
||||
|
||||
res_data = dst[0].get<String>();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user