-
Notifications
You must be signed in to change notification settings - Fork 33
[Coding Rule]: Do not read from uninitialized union fields #302
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for scrc-coding-guidelines ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@felix91gr the other one is for validity checks. this one is for reading uninitialized. |
workingjubilee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed some sharp edges in the text.
src/coding-guidelines/types-and-traits/gui_6JSM7YE7a1KR.rst.inc
Outdated
Show resolved
Hide resolved
…alized bytes gui_UnionPartialInit Do not read from union fields that may contain uninitialized bytes
add new guideline
Clarify rules for accessing struct fields and typed reads.
Standardize IDs and bibliography entries, update example miri/warning handling, and add missing tag definitions for unions/initialization.
|
👋 Hey @Dillonmcewan! You've been assigned to review this coding guideline PR. Your Role as ReviewerAs outlined in our contribution guide, please:
Review Checklist
Bot CommandsIf you need to pass this review:
To assign someone else:
Other commands:
|
src/coding-guidelines/types-and-traits/gui_6JSM7YE7a1KR.rst.inc
Outdated
Show resolved
Hide resolved
Dillonmcewan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks great! Noticed one minor formatting issue and had one question about some non-compliant examples
src/coding-guidelines/types-and-traits/gui_6JSM7YE7a1KR.rst.inc
Outdated
Show resolved
Hide resolved
src/coding-guidelines/types-and-traits/gui_6JSM7YE7a1KR.rst.inc
Outdated
Show resolved
Hide resolved
Dillonmcewan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Hey @Dillonmcewan, it's been more than 14 days since you were assigned to review this. Please take one of the following actions:
If no action is taken within 14 days, you may be transitioned from Producer to Observer status per our contribution guidelines. Life happens! If you're dealing with something, just let us know. |
Dillonmcewan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't seem to register my last approval. Trying again
|
@PLeVasseur Is there something else I need to do to appease the bot? I approved the PR, but it still flagged me as having not reviewed |
Apologies @Dillonmcewan -- there's a bug / not well defined workflow here. Still working to resolve this. Will respond here once fixed. 🙃 |
|
@Dillonmcewan to keep you in the loop: an issue to fix this has been opened #388 :) |
|
@Dillonmcewan -- I hope I was able to get this fixed, see PR here: #391 Could you try to approve again to see if it'll take? |
…alized bytes
gui_UnionPartialInit
Do not read from union fields that may contain uninitialized bytes