Skip to content

[BUG] BytesIter should be an unsafe trait or private #104

@Manishearth

Description

@Manishearth

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.

Metadata

Metadata

Assignees

Labels

A-secIssues with potential security implications.bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions