immunant / IA2-Phase2

4 stars 0 forks source link

Structs test fails on Arch (LLVM 18) #365

Open rinon opened 1 month ago

rinon commented 1 month ago
[----] ./tests/structs/main.c:143: Assertion Failed
[----]
[----]   The expression s.i1 == 1 + 100 + 8043 / 2 is false.
[----]
[FAIL] structs::main: (0.00s)
[====] Synthesis: Tested: 1 | Passing: 0 | Failing: 1 | Crashing: 0
rinon commented 1 month ago

Ah, the struct in question is packed and only 18 bytes, but we treat it as if it is 24 bytes and end up overwriting another instance of the same structure on the stack when copying the return value back.