-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] BytesIter should be an unsafe trait
or private
#104
Milestone
Comments
Sounds like it should be an unsafe trait then since we use it in other workspaces. |
This was referenced Sep 9, 2024
This was referenced Sep 16, 2024
This was referenced Sep 26, 2024
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
BytesIter seems to have a safety invariant:
https://github.com/Alexhuszagh/rust-lexical/blob/09c686b075096d48155cfb32265068f962afc56c/lexical-util/src/iterator.rs#L20-L22C1
This means the trait should be private or unsafe. I don't have time to craft a testcase, but it would mostly be an implementation of BytesIter that does these incorrectly and gets used elsewhere.
The text was updated successfully, but these errors were encountered: