This repository has been archived by the owner on Feb 4, 2025. It is now read-only.
[ICE] Incorrect memcpy for struct when alignment < size #278
Labels
bug
Something isn't working
codegen
Involves generating Cranelift IR
good first issue
Good for newcomers
ICE
Internal Compiler Error (panic)
Expected behavior
RCC should memcpy the whole struct up to the nearest multiple of the alignment.
Actual Behavior
RCC only copies the size of the struct, without the padding bits.
Code
Backtrace
Thanks to @Byter09 for the fuzzing.
The text was updated successfully, but these errors were encountered: