You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "dentiny (via GitHub)" <gi...@apache.org> on 2026/03/30 22:56:42 UTC
[I] bug: range with end larger than start leads to underflow [opendal]
dentiny opened a new issue, #7337:
URL: https://github.com/apache/opendal/issues/7337
### Describe the bug
Hi team, we have a few range concepts in the codebase ([ex](https://github.com/apache/opendal/blob/main/core/core/src/raw/http_util/bytes_range.rs), [ex](https://github.com/apache/opendal/blob/main/core/core/src/raw/http_util/bytes_content_range.rs)), which implicitly requires end offset is no less than start offset, but I don't think we check it.
As a result, we could potentially suffer underflow in certain places
- https://github.com/apache/opendal/blob/69114d2715ce3863b77b84392050aa1c3dc85037/core/core/src/raw/http_util/bytes_content_range.rs#L78
- https://github.com/apache/opendal/blob/69114d2715ce3863b77b84392050aa1c3dc85037/core/core/src/raw/http_util/bytes_range.rs#L178
- and a few others
### Steps to Reproduce
N/A
### Expected Behavior
we check the input requirement at construction and propagate the error / panic as early as possible
### Additional Context
_No response_
### Are you willing to submit a PR to fix this bug?
- [x] Yes, I would like to submit a PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: range with end larger than start leads to underflow [opendal]
Posted by "asukaminato0721 (via GitHub)" <gi...@apache.org>.
asukaminato0721 closed issue #7337: bug: range with end larger than start leads to underflow
URL: https://github.com/apache/opendal/issues/7337
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org