0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Andrew Kelley 54454fd010 std.math.big.int: breaking API changes to prevent UAF
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 2022-06-29 22:06:27 -04:00
..
compiler_rt compiler-rt: fix logic for choosing __gnu_{f2h,h2f}_ieee 2022-06-19 15:12:08 +02:00
docs flatten lib/std/special and improve "pkg inside another" logic 2022-05-06 22:41:00 -07:00
include update libcxx, libcxxabi, and C headers to release/13.x branch 2021-08-28 13:11:47 -07:00
init-exe init-exe: add note about log_level in ReleaseSmall and ReleaseFast build mode (#11626) 2022-05-14 12:56:58 +02:00
init-lib flatten lib/std/special and improve "pkg inside another" logic 2022-05-06 22:41:00 -07:00
libc Update the WASI libc 2022-06-14 23:20:39 +02:00
libcxx update libcxx, libcxxabi, and C headers to release/13.x branch 2021-08-28 13:11:47 -07:00
libcxxabi update libcxx, libcxxabi, and C headers to release/13.x branch 2021-08-28 13:11:47 -07:00
libunwind Import SPARCv9 libunwind 2022-02-13 17:16:22 +02:00
std std.math.big.int: breaking API changes to prevent UAF 2022-06-29 22:06:27 -04:00
tsan update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1 2021-08-16 23:32:13 -07:00
build_runner.zig flatten lib/std/special and improve "pkg inside another" logic 2022-05-06 22:41:00 -07:00
c.zig target: Rename sparcv9 -> sparc64 2022-05-13 16:43:59 -04:00
compiler_rt.zig Add missing adddf3 2022-06-22 14:32:52 +02:00
ssp.zig flatten lib/std/special and improve "pkg inside another" logic 2022-05-06 22:41:00 -07:00
test_runner.zig std.Progress.log: adjust API 2022-05-26 21:58:19 -07:00