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 misaligned pointer dereference in Range #13

Merged
merged 1 commit into from
Dec 25, 2023
Merged

Prevent misaligned pointer dereference in Range #13

merged 1 commit into from
Dec 25, 2023

Conversation

iciivy
Copy link
Contributor

@iciivy iciivy commented Dec 25, 2023

Using a Range<u16, 1, 1000> as a command argument panics with the following error: misaligned pointer dereference: address must be a multiple of 0x8 but is 0x8442bdbfae.

This PR should fix this.

Note that to be able to compile the project locally, I had to add an additional #[allow(invalid_reference_casting)] in the context.rs file.

@AlvaroMS25
Copy link
Owner

AlvaroMS25 commented Dec 25, 2023

Sorry about that and thanks for correcting it!
I'll be publishing a new version with these changes in a few days alongside some other changes

@AlvaroMS25 AlvaroMS25 merged commit af66180 into AlvaroMS25:master Dec 25, 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.

2 participants