-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is BitReader::refill
marked safe?
#305
Comments
There is no soundness issue in practice because all call sites are in a context where we've already guaranteed sufficient input. However, we should document the pre-condition and and mark the function as unsafe. You want to make a PR for that? |
I don't think I'm familiar enough with the callers to write the safety comments for them.
|
Not sure about |
BitReader::refill
appears to have the safety critical pre-conditionself.bytes_remaining() >= 8
. However it is marked safe, which looks like a soundness issue.The text was updated successfully, but these errors were encountered: