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
It's possible to read past the end of arrays without using unsafe, sometimes leading to segfaults. I tested it on the C backend on both 761c9de (current master) and 0.24.3 (latest release). My compiler is gcc version 13.1.1 and I am on x86-64 Linux.
I have two examples, the first one is simple but the returned value always seems to be x and I can't achieve a segfault with it:
The first one is benign, because the compiler realises that the output (if any) must be zero. We still normally try to preserve failing checks, though.
The second one is a real problem and is likely due to a sloppy rewrite rule that throws away safety dependencies.
It's possible to read past the end of arrays without using unsafe, sometimes leading to segfaults. I tested it on the C backend on both 761c9de (current master) and
0.24.3
(latest release). My compiler isgcc
version13.1.1
and I am on x86-64 Linux.I have two examples, the first one is simple but the returned value always seems to be
x
and I can't achieve a segfault with it:Output:
Here is the second one:
Output:
The text was updated successfully, but these errors were encountered: