Repository navigation
Improve sanitizer robustness in parser and UTF-8 subsequence paths - #103483
Closed
yakov-olkhovskiy wants to merge 38 commits into
Closed
yakov-olkhovskiy wants to merge 38 commits into
yakov-olkhovskiy wants to merge 38 commits into
Conversation
…x_parser_depth, max_parser_backtracks, max_query_size as options, set max_parser_depth = 100, max_parser_backtracks = 1000
…-workflow-conflicts-7a3b # Conflicts: # .github/workflows/pull_request.yml Co-authored-by: Yakov Olkhovskiy <[email protected]>
…-99530-ci-libfuzzer-for-prs
…-workflow-conflicts-7a3b # Conflicts: # .github/workflows/pull_request.yml Co-authored-by: Yakov Olkhovskiy <[email protected]>
…-workflow-conflicts-7a3b # Conflicts: # .github/workflows/pull_request.yml Co-authored-by: Yakov Olkhovskiy <[email protected]>
…-workflow-conflicts-7a3b # Conflicts: # .github/workflows/pull_request.yml # ci/workflows/pull_request.py Co-authored-by: Yakov Olkhovskiy <[email protected]>
…ce stacktrace from runner thread instead main
…-workflow-conflicts-7a3b # Conflicts: # .github/workflows/pull_request.yml Co-authored-by: Yakov Olkhovskiy <[email protected]>
…-workflow-conflicts-7a3b # Conflicts: # .github/workflows/pull_request.yml Co-authored-by: Yakov Olkhovskiy <[email protected]>
…-workflow-conflicts-7a3b # Conflicts: # .github/workflows/pull_request.yml Co-authored-by: Yakov Olkhovskiy <[email protected]>
Fix two sanitizer findings from CI run #99740: - Guard `Lexer::nextToken` max-query-size check for null input pointers to avoid UBSan pointer arithmetic exception. - Return early in `HasSubsequenceImpl::hasSubsequenceUTF8` for empty haystack before first UTF-8 decode to avoid MSan uninitialized read exception. Also add targeted parser/gtest and stateless SQL regression coverage for the new edge cases. Co-authored-by: Yakov Olkhovskiy <[email protected]>
|
|
cursor
Bot
changed the base branch from
revert-99696-revert-99530-ci-libfuzzer-for-prs
to
master
April 24, 2026 05:50
Member
Author
|
cleaning AIs mess |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This follows up on sanitizer failures discovered while running CI for #99740.
The branch keeps the original
getURLSchemeempty-input guard from that work and adds two more hardening fixes that became visible after the first fix:Lexer::nextTokenmax_query_sizecheck against null input pointers (UBSan path);HasSubsequenceImpl::hasSubsequenceUTF8for empty haystack before first UTF-8 decode (MSan path).It also adds focused regression coverage:
max_query_size;Original PR where issues were discovered: #99740
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Improved sanitizer robustness in parser and string-function edge cases:
protocolnow handles empty input safely ingetURLScheme,Lexer::nextTokenno longer performs null-pointer arithmetic inmax_query_sizechecks, and UTF-8 subsequence evaluation returns early on empty haystacks before decoding.Documentation entry for user-facing changes