Closed
Description
Description
Following code fails ILVerify verification:
Span<byte> buffer = stackalloc byte[16];
It fails with "Instruction cannot be verified.", but stackalloc with Span should be safe?
Reproduction Steps
- Build a dll that contains mentioned code.
- Run ILVerify on it
Expected behavior
Code passes verification
Actual behavior
Code fails verification with "Instruction cannot be verified." message.
Regression?
This is not a regression...
Known Workarounds
No response
Configuration
No response
Other information
No response