mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
Many of the Managed methods accepted by-val parameters which could reference Limb slices that became invalid memory after any ensureCapacity calls. Now, Managed methods accept `*const Managed` parameters so that if the function allows aliasing and the ensure-capacity call resizes the Limb slice, it also affects the aliased parameters, avoiding use-after-free bugs. This is a breaking change that reduces the requirement for callsites to manually make the ensure-capacity changes prior to calling many of the Managed methods. Closes #11897 |
History
|
|
|---|---|---|
| .. | ||
| compiler_rt | ||
| docs | ||
| include | ||
| init-exe | ||
| init-lib | ||
| libc | ||
| libcxx | ||
| libcxxabi | ||
| libunwind | ||
| std | ||
| tsan | ||
| build_runner.zig | ||
| c.zig | ||
| compiler_rt.zig | ||
| ssp.zig | ||
| test_runner.zig | ||