Skip to content
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

Prevent read_box from reading past end of box. #4

Open
jessa0 opened this issue Feb 8, 2023 · 0 comments
Open

Prevent read_box from reading past end of box. #4

jessa0 opened this issue Feb 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jessa0
Copy link

jessa0 commented Feb 8, 2023

In general, currently read_box on all boxes don't have checks against box size before reading data out of the box. This can probably be accomplished pretty easily by doing this at the top of every box:

let mut reader = reader.take(size);
@jessa0 jessa0 added the bug Something isn't working label Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant