-
Notifications
You must be signed in to change notification settings - Fork 464
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
Provide AVOID_UB for some bugs found in GCC compiler testing #1785
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Fig02 <[email protected]>
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.
Can't think of anything better for Message_DecodeNes unfortunately.
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.
commenting on the bug in the dog actor would be good to include, dunno if thats planned for another time though
#ifdef AVOID_UB | ||
//! @bug Z2_DEKU_KINGCutsceneData_008258 provides a cue id of 6, reading out-of-bounds | ||
//! of this array that happens to be 0 padding. | ||
// Avoid UB: Add an explicit array member rather than relying on 0 padding. | ||
DEKU_KING_ANIM_IDLE, | ||
#endif |
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.
should this mention mm3d and how it proves that it was infact an original bug?
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.
i would be interested to see how MM3D proves this to be padding, because it does currently match without the AVOID_UB tag
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.
see discord (gcc thread)
Special thanks to @fig02 for the GCC playthrough that uncovered these, and for everyone else who looked into and discussed the problems.
The
z_message_nes.c
AVOID_UB is particularly nasty.. suggestions welcome