Fixed buffer underflow in visitParamExtractRaw

This commit is contained in:
Alexey Milovidov 2019-07-05 21:23:14 +03:00
parent 2469ec1af3
commit 1c2e422797
3 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,7 @@ struct ExtractRaw
for (auto extract_begin = pos; pos != end; ++pos) 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(); expects_end.pop_back();
current_expect_end = expects_end.empty() ? 0 : expects_end.back(); current_expect_end = expects_end.empty() ? 0 : expects_end.back();

View File

@ -0,0 +1 @@
SELECT visitParamExtractRaw('\"a\":', 'a');