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

Fix reference to out of bounds address in offsetof #3538

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

pmatos
Copy link
Collaborator

@pmatos pmatos commented Mar 31, 2024

No description provided.

@Sonicadvance1
Copy link
Member

Sonicadvance1 commented Mar 31, 2024

Looks like the two std::array vectors can drop their fixed length count by one. 44 to 43.

static constexpr std::array<uint64_t, 44> OffsetArrayAVX = {{

Nice catch although.

@pmatos
Copy link
Collaborator Author

pmatos commented Apr 1, 2024

Looks like the two std::array vectors can drop their fixed length count by one. 44 to 43.

static constexpr std::array<uint64_t, 44> OffsetArrayAVX = {{

Nice catch although.

Good point, thanks.

@pmatos
Copy link
Collaborator Author

pmatos commented Apr 1, 2024

Squashed - ready to merge.

Adjust static array size to match new size.
Remove rflags from printing code and adjust offsets - fixes
printing off-by-one error.
@pmatos
Copy link
Collaborator Author

pmatos commented Apr 1, 2024

@Sonicadvance1 added the off-by-one printout fix to this patch.

@pmatos pmatos requested a review from Sonicadvance1 April 1, 2024 11:15
@Sonicadvance1 Sonicadvance1 merged commit 4214d9b into FEX-Emu:main Apr 2, 2024
10 checks passed
@pmatos pmatos deleted the OffsetofOoB branch April 8, 2024 06:28
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