mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fixed buffer underflow in visitParamExtractRaw
This commit is contained in:
parent
2469ec1af3
commit
1c2e422797
@ -100,7 +100,7 @@ struct ExtractRaw
|
||||
|
||||
for (auto extract_begin = pos; pos != end; ++pos)
|
||||
{
|
||||
if (*pos == current_expect_end)
|
||||
if (current_expect_end && *pos == current_expect_end)
|
||||
{
|
||||
expects_end.pop_back();
|
||||
current_expect_end = expects_end.empty() ? 0 : expects_end.back();
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
SELECT visitParamExtractRaw('\"a\":', 'a');
|
Loading…
Reference in New Issue
Block a user