Skip to content

[codex] Saturate diff context line ranges#3815

Draft
kmg0308 wants to merge 1 commit into
sharkdp:masterfrom
kmg0308:codex/small-improvement-20260629
Draft

[codex] Saturate diff context line ranges#3815
kmg0308 wants to merge 1 commit into
sharkdp:masterfrom
kmg0308:codex/small-improvement-20260629

Conversation

@kmg0308

@kmg0308 kmg0308 commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • Use saturating addition when building diff context line ranges to avoid overflow at bounds.

Validation

  • targeted lib test, cargo test --lib, fmt check, and diff check passed in Docker.

Notes

  • Opened as a draft PR for maintainer review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant