You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JIT: Illegal return buffer/argument aliasing on native ABIs #72270
The SysV x64 ABI states the following for returning values:
If the type has class MEMORY, then the caller provides space for the return
value and passes the address of this storage in %rdi as if it were the first
argument to the function. In effect, this address becomes a “hidden” first ar-
gument. This storage must not overlap any data visible to the callee through
other names than this argument.
Activity
jakobbotsch commentedon Jul 28, 2022
Clang and MSVC both make use of this assumption, see this example, so this is not a theoretical issue and also seems to affect win-x64.
[-]JIT: Illegal return buffer/argument aliasing in SysV x64 ABI[/-][+]JIT: Illegal return buffer/argument aliasing on native ABIs[/+]JIT: Disallow return buffer aliasing for unmanaged calls
JIT: Disallow return buffer aliasing for unmanaged calls (#73059)