-
Notifications
You must be signed in to change notification settings - Fork 385
Addresses are unintentionally aligned #791
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
Comments
But also it is impossible to entirely avoid this. So maybe we should keep the "no int base addresses" mode... or have a mode where the base address is only used for ptr comparison, not anything else? That seems neat actually. |
wait how is |
Oh I should had left a comment/remove it. I left it when I copied and pasted just after finishing doodling with it. |
tweak inttoptr allocation behavior - Make `align_addr` not offset by `align` for no reason. - Add some random slack between allocations to give them the chance to not be aligned. Cc @christianpoveda Fixes #791
Uh oh!
There was an error while loading. Please reload this page.
During the implementation of the intptrcast model we discovered that memory addresses are aligned even when
miri::intptrcast::GlobalState::align_addr
is not used.Relevant code:
The text was updated successfully, but these errors were encountered: