- spec 08 §7.1: platform-independent accounted size table shared by max_value_size and max_local_frame; enum tag is the smallest of 1/2/4/8 bytes; borrows 8, slices 16; checked arithmetic, overflow is E5101 with found = "overflow" - every materializable type in a module must be at most 1 MiB, checked before functions are verified; each oversized type reported once - E5101 fields no longer truncate huge sizes - conformance: frame_too_large, value_too_large, size_overflow - Q-020 resolved; Phase 1 closed
14 lines
327 B
LLVM
14 lines
327 B
LLVM
; Computing the accounted size overflows; the verifier reports E5101 instead of trapping or crashing.
|
|
; expect: reject E5101
|
|
; phase: 1
|
|
; spec: docs/spec/08-verifier.md
|
|
module test.size_overflow
|
|
air 0
|
|
lang 0.1
|
|
features [arrays, ownership]
|
|
|
|
fn @f(%a: array<array<u64, 4294967296>, 4294967296>) -> void
|
|
effects []
|
|
entry:
|
|
ret
|