Skip to content

Fix UB with Japas jam session#863

Merged
louist103 merged 1 commit intoHarbourMasters:develop-satokofrom
Archez:fix-japas-jam
Nov 16, 2024
Merged

Fix UB with Japas jam session#863
louist103 merged 1 commit intoHarbourMasters:develop-satokofrom
Archez:fix-japas-jam

Conversation

@Archez
Copy link
Copy Markdown
Contributor

@Archez Archez commented Nov 16, 2024

Fixes an issue where the Japas jam session could not be performed on Linux due to UB with an expression that starts the ocarina song section. This expression was left shifting by 83, which can't fit in a u32. On some platforms this would roll over to 19 (83-32-32), but linux would get some other value, which lead to the ocarina flags not being set with the proper prompt.

Reworking this expression to be similar to the surrounding code prevents the UB while maintaining rom matching for decomp. Submitted a PR upstream for this.

Fixes #680

Build Artifacts

@Archez Archez linked an issue Nov 16, 2024 that may be closed by this pull request
4 tasks
@louist103 louist103 merged commit b821730 into HarbourMasters:develop-satoko Nov 16, 2024
@Archez Archez deleted the fix-japas-jam branch November 17, 2024 23:01
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.

Japas' improvisation fails on his own

3 participants