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

Safe window #7

Merged
merged 30 commits into from
Jan 16, 2024
Merged

Safe window #7

merged 30 commits into from
Jan 16, 2024

Conversation

folkertdev
Copy link
Collaborator

make the Window into a safe abstraction

That leaves 2 unsafe things to be fixed currently

  • state.pending and state.sym_buf sharing memory. We turn sym_buf into a mutable slice which is unsound because the memory can be written to by state.pending
  • there is some raw pointer arithmetic in longest_match that I don't understand well yet.

@folkertdev folkertdev merged commit 7d8b972 into main Jan 16, 2024
5 checks passed
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