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

Check for index out of bound #1

Closed
wants to merge 1 commit into from
Closed

Conversation

n-osborne
Copy link
Owner

Testing the library using Ortac/QCheck-STM (here](ocaml-gospel/ortac#183) led to discovering that Varray.Circular.delete_at was not raising Invalid_argument on index out of bound like the documentation states and that Varray.delete_at segfaults.

This PR proposes to add a check for index out of bound in Grow.Make.pop_at as the least intrusive fix.

@n-osborne n-osborne closed this Nov 23, 2023
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.

1 participant