Skip to content

Cherry pick #79969 to 25.3: Fix match(col, '^…') index analysis with escaped metacharacters to avoid wrong results and crashes#89328

Merged
robot-ch-test-poll3 merged 6 commits intobackport/25.3/79969from
cherrypick/25.3/79969
Oct 31, 2025
Merged

Cherry pick #79969 to 25.3: Fix match(col, '^…') index analysis with escaped metacharacters to avoid wrong results and crashes#89328
robot-ch-test-poll3 merged 6 commits intobackport/25.3/79969from
cherrypick/25.3/79969

Conversation

@robot-ch-test-poll3
Copy link
Contributor

Original pull-request #79969

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

filimonov and others added 6 commits May 8, 2025 15:09
- Change loop to `while (pos < end)` to guard against overruns
- Support all single‐char escapes: `\]`, `\}`, `\-`, `\\` alongside existing metachars
- Move `++pos` into the supported‐escape case only, removing stray increments
- Prevent garbage reads past `end` and ensure correct fixed‐prefix for escaped metacharacters
Fix match(col, '^…') index analysis with escaped metacharacters to avoid wrong results and crashes
@robot-ch-test-poll3 robot-ch-test-poll3 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default labels Oct 31, 2025
@robot-ch-test-poll3 robot-ch-test-poll3 merged commit 09185ad into backport/25.3/79969 Oct 31, 2025
125 of 131 checks passed
@robot-ch-test-poll3 robot-ch-test-poll3 deleted the cherrypick/25.3/79969 branch October 31, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants