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

More bounds on views #26

Merged
merged 6 commits into from
Jul 5, 2014
Merged

More bounds on views #26

merged 6 commits into from
Jul 5, 2014

Conversation

avsm
Copy link
Member

@avsm avsm commented Jul 4, 2014

Add bounds checks for Cstruct.BE/LE functions that violate a view. Previously, only bounds errors on the underlying buffers would raise.

Bug #25, reported by @yomimono in mirage/mirage-tcpip#56.

@hannesm
Copy link
Member

hannesm commented Jul 4, 2014

oh, sorry - commented on outdated diff

@avsm
Copy link
Member Author

avsm commented Jul 4, 2014

@hannes: could you run with this diff on the tls stack and check for regressions? They should be bugs in the TLS code if any do happen, but just to be sure. I'm testing net stack.

@hannesm
Copy link
Member

hannesm commented Jul 4, 2014

I run both ocaml-tls and ocaml-x509 test suite, which parse and unparse cstruct data quite heavily. both are fine with this PR

avsm added a commit that referenced this pull request Jul 5, 2014
@avsm avsm merged commit f72f693 into mirage:master Jul 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants