zig/test/cases/safety
2022-09-20 19:05:00 -07:00
..
@alignCast misaligned.zig Sema: @alignCast safety 2022-07-23 15:40:11 +03:00
@asyncCall with too small a frame.zig
@errSetCast error not present in destination.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
@floatToInt cannot fit - negative out of range.zig Sema: @floatToInt safety 2022-07-23 15:40:11 +03:00
@floatToInt cannot fit - negative to unsigned.zig Sema: @floatToInt safety 2022-07-23 15:40:11 +03:00
@floatToInt cannot fit - positive out of range.zig Sema: @floatToInt safety 2022-07-23 15:40:11 +03:00
@intCast to u0.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
@intToEnum - no matching tag value.zig stage2: add runtime safety for invalid enum values 2022-08-05 22:13:58 +03:00
@intToPtr address zero to non-optional byte-aligned pointer.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
@intToPtr address zero to non-optional pointer.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
@tagName on corrupted enum value.zig stage2: add runtime safety for invalid enum values 2022-08-05 22:13:58 +03:00
@tagName on corrupted union value.zig stage2: add runtime safety for invalid enum values 2022-08-05 22:13:58 +03:00
array slice sentinel mismatch non-scalar.zig Sema: add safety for sentinel slice 2022-08-02 18:34:30 +03:00
array slice sentinel mismatch vector.zig Sema: add safety for sentinel slice 2022-08-02 18:34:30 +03:00
array slice sentinel mismatch.zig Sema: add safety for sentinel slice 2022-08-02 18:34:30 +03:00
awaiting twice.zig
bad union field access.zig Sema: bad union field access safety 2022-07-23 15:40:11 +03:00
calling panic.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
cast []u8 to bigger slice of wrong size.zig Sema: account for sentinel in bounds check 2022-08-05 22:13:57 +03:00
cast integer to global error and no code matches.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
empty slice with sentinel out of bounds.zig make self-hosted the default compiler 2022-08-19 16:45:15 -07:00
error return trace across suspend points.zig
exact division failure - vectors.zig Sema: exact division safety 2022-07-23 15:40:11 +03:00
exact division failure.zig Sema: exact division safety 2022-07-23 15:40:11 +03:00
integer addition overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
integer division by zero - vectors.zig Sema: divide by zero safety 2022-07-23 15:40:11 +03:00
integer division by zero.zig Sema: divide by zero safety 2022-07-23 15:40:11 +03:00
integer multiplication overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
integer negation overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
integer subtraction overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
intToPtr with misaligned address.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
invalid resume of async function.zig
modrem by zero.zig Sema: elide safety of modulus and remainder division sometimes 2022-08-05 21:13:18 -07:00
modulus by zero.zig Sema: elide safety of modulus and remainder division sometimes 2022-08-05 21:13:18 -07:00
nosuspend function call, callee suspends.zig
optional unwrap operator on C pointer.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
optional unwrap operator on null pointer.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
out of bounds slice access.zig make self-hosted the default compiler 2022-08-19 16:45:15 -07:00
pointer casting null to non-optional pointer.zig Sema: add null check for implicit casts 2022-08-05 22:13:58 +03:00
pointer slice sentinel mismatch.zig Sema: add null pointer slice safety check when len is comptime known 2022-08-05 22:13:57 +03:00
remainder division by zero.zig Sema: elide safety of modulus and remainder division sometimes 2022-08-05 21:13:18 -07:00
resuming a function which is awaiting a call.zig
resuming a function which is awaiting a frame.zig
resuming a non-suspended function which has been suspended and resumed.zig
resuming a non-suspended function which never been suspended.zig
shift left by huge amount.zig Sema: add safety check for non-power-of-two shift amounts 2022-08-05 22:13:58 +03:00
shift right by huge amount.zig Sema: add safety check for non-power-of-two shift amounts 2022-08-05 22:13:58 +03:00
signed integer division overflow - vectors.zig Sema: add safety check for non-power-of-two shift amounts 2022-08-05 22:13:58 +03:00
signed integer division overflow.zig Sema: add safety check for non-power-of-two shift amounts 2022-08-05 22:13:58 +03:00
signed integer not fitting in cast to unsigned integer - widening.zig Sema: cast negative to unsigned safety 2022-07-23 15:40:11 +03:00
signed integer not fitting in cast to unsigned integer.zig Sema: cast negative to unsigned safety 2022-07-23 15:40:11 +03:00
signed shift left overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
signed shift right overflow.zig Sema: implement shr_exact runtime safety 2022-07-23 15:40:11 +03:00
signed-unsigned vector cast.zig Sema: cast negative to unsigned safety 2022-07-23 15:40:11 +03:00
slice sentinel mismatch - floats.zig Sema: add null pointer slice safety check when len is comptime known 2022-08-05 22:13:57 +03:00
slice sentinel mismatch - optional pointers.zig Sema: add null pointer slice safety check when len is comptime known 2022-08-05 22:13:57 +03:00
slice slice sentinel mismatch.zig Sema: add null pointer slice safety check when len is comptime known 2022-08-05 22:13:57 +03:00
slice with sentinel out of bounds - runtime len.zig make self-hosted the default compiler 2022-08-19 16:45:15 -07:00
slice with sentinel out of bounds.zig make self-hosted the default compiler 2022-08-19 16:45:15 -07:00
slicing null C pointer - runtime len.zig Sema: add null check for implicit casts 2022-08-05 22:13:58 +03:00
slicing null C pointer.zig Sema: add null check for implicit casts 2022-08-05 22:13:58 +03:00
switch on corrupted enum value.zig Sema: better safety check on switch on corrupt value 2022-08-05 22:13:57 +03:00
switch on corrupted union value.zig Sema: better safety check on switch on corrupt value 2022-08-05 22:13:57 +03:00
truncating vector cast.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
unreachable.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
unsigned integer not fitting in cast to signed integer - same bit count.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
unsigned shift left overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
unsigned shift right overflow.zig Sema: implement shr_exact runtime safety 2022-07-23 15:40:11 +03:00
unsigned-signed vector cast.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
unwrap error switch.zig safety: show error return trace when unwrapping error in switch 2022-09-20 19:05:00 -07:00
unwrap error.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
value does not fit in shortening cast - u0.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
value does not fit in shortening cast.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
vector integer addition overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
vector integer multiplication overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
vector integer negation overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
vector integer subtraction overflow.zig move passing safety tests to stage2 2022-07-23 15:40:11 +03:00
zero casted to error.zig stage2: check for zero in @intToError safety 2022-08-12 11:41:09 +03:00