ClickHouse® is a real-time analytics DBMS
Go to file
Yong Wang 795c1a98dc
Fix segmentation fault in KQL parser when the input query exceeds the max_query_size (#59626)
* Fix_kql_issue_found_by_wingfuzz

This commit fix the issues:
 https://github.com/ClickHouse/ClickHouse/issues/59036
 https://github.com/ClickHouse/ClickHouse/issues/59037

both issues are same reason, the input query exceed the max_query_size,
so the condition isEnd() of token is not meet and cause the assertion failure

* fix_kql_issue_found_by_wingfuzz: use isValid instead of TokenType::EndOfStream

* fix_kql_issue_found_by_wingfuzz: make functional test result consist

* fix_kql_issue_found_by_wingfuzz: update test case for makeseries

* fix_kql_issue_found_by_wingfuzz: disable makeseries

* fix_kql_issue_found_by_wingfuzz:
 use isvalid() function to replace isEnd() function of TokenIterator to check the end of stream

* fix_kql_issue_found_by_wingfuzz: add test case for max_query_size

* fix_kql_issue_found_by_wingfuzz: fix AST structure

* fix_kql_issue_found_by_wingfuzz: make sure the max query size test is in the dialect of kusto

* fix_kql_issue_found_by_wingfuzz : restore max query size after test

* fix_kql_issue_found_by_wingfuzz : fix typo

---------

Co-authored-by: János Benjamin Antal <benjamin.antal@clickhouse.com>
2024-02-26 13:31:47 +01:00
.github CI: remove Integration tests asan, release from PR wf 2024-02-22 18:35:06 +00:00
base Merge branch 'ClickHouse:master' into div_int_with_decimal 2024-02-14 13:16:13 +01:00
benchmark
cmake Merge branch 'master' into enable-coverage-for-debug-build 2024-02-07 04:58:21 +01:00
contrib Merge branch 'master' into fix_head_bucket_after_update 2024-02-24 23:44:10 +01:00
docker Expose fatal.log separately for fuzzer 2024-02-24 19:23:28 +01:00
docs Merge pull request #60402 from rschu1ze/doc-settings_changes 2024-02-26 13:20:52 +01:00
packages Install ch/chc/chl via nfpm 2024-02-12 11:10:00 +01:00
programs Merge pull request #60002 from vitlibar/add-config-setting-remove-backup-files-after-failure 2024-02-23 12:42:55 +01:00
rust Respect CMAKE_OSX_DEPLOYMENT_TARGET for Rust targets 2024-02-11 10:55:14 +01:00
src Fix segmentation fault in KQL parser when the input query exceeds the max_query_size (#59626) 2024-02-26 13:31:47 +01:00
tests Fix segmentation fault in KQL parser when the input query exceeds the max_query_size (#59626) 2024-02-26 13:31:47 +01:00
utils Merge branch 'master' into fix_undead_sessions 2024-02-22 14:36:36 +01:00
.clang-format
.clang-tidy
.clangd
.editorconfig
.exrc
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmessage CI: refactor bugfix validate job 2024-02-15 16:28:27 +00:00
.gitmodules
.pylintrc
.snyk
.yamllint
AUTHORS
CHANGELOG.md Update CHANGELOG.md 2024-02-07 05:33:32 +03:00
CMakeLists.txt Merge branch 'master' of github.com:ClickHouse/ClickHouse into enable-coverage-for-debug-build 2024-02-09 22:52:49 +01:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
format_sources
LICENSE
PreLoad.cmake
README.md Update README.md 2024-02-05 22:27:13 +01:00
SECURITY.md

Website Apache 2.0 License

The ClickHouse company logo.

ClickHouse® is an open-source column-oriented database management system that allows generating analytical data reports in real-time.

How To Install (Linux, macOS, FreeBSD)

curl https://clickhouse.com/ | sh

Upcoming Events

Keep an eye out for upcoming meetups around the world. Somewhere else you want us to be? Please feel free to reach out to tyler <at> clickhouse <dot> com.

Recent Recordings

  • Recent Meetup Videos: Meetup Playlist Whenever possible recordings of the ClickHouse Community Meetups are edited and presented as individual talks. Current featuring "Modern SQL in 2023", "Fast, Concurrent, and Consistent Asynchronous INSERTS in ClickHouse", and "Full-Text Indices: Design and Experiments"
  • Recording available: v24.1 Release Webinar All the features of 24.1, one convenient video! Watch it now!
  • All release webinar recordings: YouTube playlist

Interested in joining ClickHouse and making it your full-time job?

We are a globally diverse and distributed team, united behind a common goal of creating industry-leading, real-time analytics. Here, you will have an opportunity to solve some of the most cutting-edge technical challenges and have direct ownership of your work and vision. If you are a contributor by nature, a thinker and a doer - well definitely click!

Check out our current openings here: https://clickhouse.com/company/careers

Can't find what you are looking for, but want to let us know you are interested in joining ClickHouse? Email careers@clickhouse.com!