0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Motiejus Jakštys 543bee0adf std.BufSet.clone: fix key ownership
This was introduced in d1a4654834: when a
BufSet clones the keys, it used to assign the new pointers to the old
struct. Fix that by assigning the pointers to the correct, i.e. the new,
struct.

This caused double-free when using arena allocator for the new struct,
also in the test case.
History 2022-03-01 13:28:47 -05:00
..
atomic allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
build Replace argvCmd with std.mem.join 2022-02-06 22:21:46 -07:00
c add constant for haiku 2022-02-26 10:53:13 +02:00
compress std: remove superfluous .read = true from deflate tests 2022-01-29 16:57:10 +02:00
crypto stage2: remove anytype fields from the language 2022-02-01 19:06:40 -07:00
dwarf std: reorganization that allows new usingnamespace semantics 2021-09-01 17:54:06 -07:00
event allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
fmt std.fmt.parseHexFloat: clean up bitwise logic 2022-01-31 20:59:32 -07:00
fs std.fs: Implement cross-platform metadata API 2022-02-13 20:56:06 +00:00
hash std: make ArrayHashMap eql function accept an additional param 2022-01-31 01:20:45 -07:00
heap make gpa.deinit work with stage2 2022-02-28 13:09:14 -07:00
io readUntilDelimiter*: read only if buffer not full 2022-01-24 17:44:26 +02:00
json allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
math stage2: Implement @bitReverse and @byteSwap 2022-02-18 14:28:32 -07:00
mem std.mem.Allocator: upgrade to new function pointer semantics 2022-01-26 20:02:01 -07:00
meta std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
net Check for isDarwin() instead of linked libc 2022-01-14 13:44:38 +01:00
os stage2: fix bitcast to optional ptr in llvm backend; omit safety check for intToPtr on optional ptr 2022-02-27 12:15:49 +02:00
rand Add argument for fillFn to Random.init 2021-10-29 19:20:31 -04:00
special make gpa.deinit work with stage2 2022-02-28 13:09:14 -07:00
target update target CPU features with LLVM 13 rc1 data 2021-08-15 23:09:55 -07:00
testing allocgate: change resize to return optional instead of error 2021-11-30 23:45:01 +00:00
Thread std: rename sched_yield to yield and move it to std.Thread 2022-02-27 15:34:02 -05:00
time std.time.epoch: fix issue in documentation 2021-12-16 19:08:58 -08:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
valgrind remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
x Check for isDarwin() instead of linked libc 2022-01-14 13:44:38 +01:00
zig translate-c: Add support for cast-to-union 2022-02-23 14:11:46 +02:00
array_hash_map.zig std: make ArrayHashMap eql function accept an additional param 2022-01-31 01:20:45 -07:00
array_list.zig [std.ArrayList] return explicit errors 2022-02-22 13:57:51 -05:00
ascii.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
atomic.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
base64.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
bit_set.zig std.bit_set: add setRangeValue(Range, bool) 2022-02-07 14:58:07 -05:00
bounded_array.zig Slice function of BoundedArray now returns slice based on self pointer 2022-01-16 01:37:37 -05:00
buf_map.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
buf_set.zig std.BufSet.clone: fix key ownership 2022-03-01 13:28:47 -05:00
build.zig Revert "Merge pull request #10950 from hexops/sg/responsefiles" 2022-02-24 12:11:11 -07:00
builtin.zig stage2: integer-backed packed structs 2022-02-23 23:59:25 -07:00
c.zig std: validate frame-pointer address in stack walking 2022-02-11 15:28:36 +01:00
child_process.zig Merge pull request #10813 from marler8997/windowsChildHang 2022-02-07 17:33:26 -05:00
coff.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
compress.zig compress: add a deflate compressor 2022-01-23 19:30:06 +01:00
comptime_string_map.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
crypto.zig a small crusade against std.meta.declarations 2022-01-31 22:25:49 -07:00
cstr.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
debug.zig StackIterator should not try to check validity on freestanding 2022-02-19 15:38:56 -05:00
dwarf.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
dynamic_library.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
elf.zig Rename mem.bswapAllFields to byteSwapAllFields 2022-01-28 21:03:21 -05:00
enums.zig stage1: avoid anytype fields for type info 2022-02-01 18:10:19 -07:00
event.zig std, compiler-rt: remove test names where applicable 2021-09-01 17:54:06 -07:00
fifo.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
fmt.zig AstGen: evaluate comptime var init expressions in a comptime context 2022-02-19 15:11:18 -07:00
fs.zig Adds Linux support for POSIX file locking with fcntl 2022-02-15 13:22:50 +02:00
hash.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
hash_map.zig make gpa.deinit work with stage2 2022-02-28 13:09:14 -07:00
heap.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
io.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
json.zig std.json: fix compile error for comptime fields 2022-02-13 14:33:17 +02:00
leb128.zig I'm working on a WebAssembly interpreter in zig. WebAssembly uses LEB128 encoding throughout its specification. 2021-09-20 01:58:18 -04:00
linked_list.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
log.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
macho.zig macho: put LC_* consts in a typed enum(u32) LC 2021-12-15 08:59:20 +01:00
math.zig stage2: misc fixes in Sema 2022-02-23 10:40:40 +02:00
mem.zig std: Allow mem.zeroes to work at comptime with extern union 2022-02-07 11:34:20 +02:00
meta.zig stage1: avoid anytype fields for type info 2022-02-01 18:10:19 -07:00
multi_array_list.zig Revert "MultiArrayList: Fix error when struct is 0 sized" 2022-01-24 21:29:04 -07:00
net.zig Merge pull request #10576 from schmee/macos-resolve-ip 2022-01-15 00:47:12 +01:00
once.zig std.Thread.Mutex: change API to lock() and unlock() 2021-11-09 18:31:03 -07:00
os.zig std: rename sched_yield to yield and move it to std.Thread 2022-02-27 15:34:02 -05:00
packed_int_array.zig Better documentation, use of len field instead of function, @bitSizeOf instead of meta.bitCout 2021-10-09 03:15:34 -04:00
pdb.zig Only check the file's length once in pdb.Msf.init 2021-12-21 17:29:23 -08:00
priority_dequeue.zig std.priority_dequeue: allow comparator to take a context parameter 2021-12-15 17:46:10 -08:00
priority_queue.zig std.priority_queue: allow comparator to take a context parameter 2021-12-15 17:46:04 -08:00
process.zig Avoid depending on child process execution when not supported by host OS 2022-02-06 22:21:46 -07:00
Progress.zig stage2: do not memoize calls that can mutate comptime state 2022-02-27 16:43:53 +02:00
rand.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
SemanticVersion.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
sort.zig std.rand: Refactor Random interface 2021-10-27 16:07:48 -04:00
start.zig wasm: update test runner 2022-02-08 10:03:29 +01:00
start_windows_tls.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
std.zig tz parsing reader interface, test thicc files, and exclude tzif 2021-12-31 17:17:49 +00:00
target.zig stage2: add support for Nvptx target 2022-02-05 16:33:00 +02:00
testing.zig std.testing.refAllDecls: force decl to be analyzed with just @field 2022-02-18 21:21:21 +02:00
Thread.zig std: rename sched_yield to yield and move it to std.Thread 2022-02-27 15:34:02 -05:00
time.zig time: introduce Instant (#10972) 2022-02-24 18:51:44 -05:00
tz.zig Rename mem.bswapAllFields to byteSwapAllFields 2022-01-28 21:03:21 -05:00
unicode.zig Full response file (*.rsp) support 2022-01-30 21:27:52 +02:00
valgrind.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
wasm.zig wasm: Implement memset, and sret arguments. 2022-01-04 17:59:05 +01:00
x.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
zig.zig stage2: add support for Nvptx target 2022-02-05 16:33:00 +02:00