You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[tempfix] - add bounds check check to avoid panics (#3867)
<!--
Please create an issue to collect feedback prior to feature additions. Please also reference that issue in any PRs.
If possible try to keep PRs scoped to one feature, and add tests for new features.
-->
### Description:
Add a defensive bounds check to prevent invalid span ranges in the Aho-Corasick pattern matching implementation. This change ensures that the start index of a match span never exceeds its end index, preventing potential runtime panics.
Note: This is a temporary fix until the root cause is identified.
### Checklist:
* [ ] Tests passing (`make test-community`)?
* [ ] Lint passing (`make lint` this requires [golangci-lint](https://golangci-lint.run/welcome/install/#local-installation))?
0 commit comments