Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: ensure all notebook allocations are 8-byte aligned#1930

Merged
plusvic merged 1 commit into
VirusTotal:masterfrom
JustRustThings:1928-notebook-allocations
Jun 30, 2023
Merged

fix: ensure all notebook allocations are 8-byte aligned#1930
plusvic merged 1 commit into
VirusTotal:masterfrom
JustRustThings:1928-notebook-allocations

Conversation

@vthib
Copy link
Copy Markdown
Contributor

@vthib vthib commented Jun 29, 2023

Add a custom align directive on the data field in YR_NOTEBOOK_PAGE. This ensures the field is 8-byte aligned, and thus all allocations are 8-byte aligned.

Technically YR_ALIGN only works if the provided alignment is not bigger than the max alignment, so i'm not sure whether this fixes the bug everywhere.

@plusvic plusvic merged commit efa8765 into VirusTotal:master Jun 30, 2023
@vthib vthib deleted the 1928-notebook-allocations branch June 30, 2023 10:47
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