Skip to content

[MultiSource][MiBench] Fix consumer-typeset flexible tail storage sizing#405

Open
xukl wants to merge 1 commit into
llvm:mainfrom
xukl:fix-mibench-ub-on-gcc
Open

[MultiSource][MiBench] Fix consumer-typeset flexible tail storage sizing#405
xukl wants to merge 1 commit into
llvm:mainfrom
xukl:fix-mibench-ub-on-gcc

Conversation

@xukl
Copy link
Copy Markdown

@xukl xukl commented May 16, 2026

Use FULL_CHAR ostring[] in union rec::os1 and remove the legacy - 4 compensation in NewWord size calculation.

This avoids UB from out-of-bounds tail storage access and fixes runtime misbehavior seen on x86_64 with GCC 14/15 at -O3.

Use `FULL_CHAR ostring[]` in `union rec::os1` and remove the legacy `- 4`
compensation in `NewWord` size calculation.

This avoids UB from out-of-bounds tail storage access and fixes runtime
misbehavior seen on x86_64 with GCC 14/15 at `-O3`.

Co-authored-by: Ziyang Zhang <functioner@sjtu.edu.cn>
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.

1 participant