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

Bug fix for withSet in LogicStructure. #561

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Conversation

kimmeljo
Copy link
Contributor

@kimmeljo kimmeljo commented Feb 6, 2025

Description & Motivation

Bug in LogicStructure's withSet method where if the "update" value's width is less than the given overlapping field's width within the structure (per the start index of the set), build would crash because the out of bounds guard on the "update" value was incorrectly ignoring the "update" field's width and instead just using the overlapping field's width.

Related Issue(s)

N/A

Testing

Added a single unit test to logic_structure_test that exercises the bug.

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

Backwards compatible.

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

No need for doc.

Copy link
Contributor

@mkorbel1 mkorbel1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

Can you add a brief summary of the bug in the PR description? It helps for paper trail of bugs and their fixes and writing the CHANGELOG

Copy link
Contributor

@mkorbel1 mkorbel1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@mkorbel1 mkorbel1 merged commit 39c2526 into intel:main Feb 11, 2025
3 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.

2 participants