mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 22:22:00 +00:00
add check sanitizer
This commit is contained in:
parent
50905e2005
commit
fa1baef448
@ -271,7 +271,7 @@ String processBackRefs(const String & data, const re2_st::RE2 & searcher, const
|
||||
searcher.Match(haystack, 0, data.size(), re2_st::RE2::Anchor::UNANCHORED, matches, 10);
|
||||
for (const auto & item : pieces)
|
||||
{
|
||||
if (item.ref_num >= 0)
|
||||
if (item.ref_num >= 0 && item.ref_num < 10)
|
||||
result += matches[item.ref_num].ToString();
|
||||
else
|
||||
result += item.literal;
|
||||
|
Loading…
Reference in New Issue
Block a user