Update encodeXML.cpp

This commit is contained in:
alexey-milovidov 2020-12-12 03:09:11 +03:00 committed by GitHub
parent b96316f0c4
commit e00b99ffe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ namespace
ColumnString::Chars & res_data,
ColumnString::Offsets & res_offsets)
{
/// 6 is the maximum size amplification (the maximum length of encoded entity: ")
res_data.resize(data.size() * 6);
size_t size = offsets.size();
res_offsets.resize(size);