Skip to content

Conversation

@amitksingh1490
Copy link
Contributor

No description provided.

@github-actions github-actions bot added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. type: fix Iterations on existing features or infrastructure. labels Jan 3, 2026
@amitksingh1490 amitksingh1490 marked this pull request as ready for review January 4, 2026 04:55
amitksingh1490 and others added 6 commits January 4, 2026 10:44
Fixes a potential panic in from_search_match when SearchMatch references a line number beyond the end of the source text. When both start_idx and end_idx equal lines.len(), accessing lines[start_idx] would cause a panic. Added bounds check to return 0 length for out of bounds matches.

Co-Authored-By: ForgeCode <[email protected]>
Add bounds check in the multi-line match case of from_search_match to prevent array out of bounds panic when start_idx >= lines.len() or end_idx > lines.len(). This complements the earlier fix for single-line matches.

Co-Authored-By: ForgeCode <[email protected]>
@tusharmath tusharmath merged commit c52e328 into main Jan 4, 2026
10 checks passed
@tusharmath tusharmath deleted the feat/patch-improvements-be branch January 4, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Brand new functionality, features, pages, workflows, endpoints, etc. type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants