zig/lib/std
Jacob Young e60d667111 Module: fix @embedFile of files containing zero bytes
If an adapted string key with embedded nulls was put in a hash map with
`std.hash_map.StringIndexAdapter`, then an incorrect hash would be
entered for that entry such that it is possible that when looking for
the exact key that matches the prefix of the original key up to the
first null would sometimes match this entry due to hash collisions and
sometimes not if performed later after a grow + rehash, causing the same
key to exist with two different indices breaking every string equality
comparison ever, for example claiming that a container type doesn't
contain a field because the field name string in the struct and the
string representing the identifier to lookup might be equal strings but
have different string indices.  This could maybe be fixed by changing
`std.hash_map.StringIndexAdapter.hash` to only hash up to the first
null, therefore ensuring that the entry's hash is correct and that all
future lookups will be consistent, but I don't trust anything so instead
I assert that there are no embedded nulls.
2024-02-22 12:33:53 -08:00
..
Build Merge pull request #18712 from Vexu/std.options 2024-02-09 13:38:42 -08:00
c std.os.termios: add/fix std.c.TCSA for BSDs 2024-02-15 02:40:11 -05:00
compress Package.Fetch: fix Git package fetching 2024-02-19 13:43:32 -08:00
crypto x86_64: implement @byteSwap of big integers 2024-02-12 05:25:07 +01:00
dwarf dwarf: optimize dwarf parsing for speed 2024-02-18 14:11:06 +01:00
fmt lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
fs bsd: debitrot type-safe std.c.O 2024-02-14 19:26:12 -08:00
hash Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
heap Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
http add deflate implemented from first principles 2024-02-14 18:28:20 +01:00
io dwarf: optimize dwarf parsing for speed 2024-02-18 14:11:06 +01:00
json json: make std.json.stringifyAlloc return a mutable slice (#19013) 2024-02-20 09:03:00 -05:00
math x86_64: implement @clz and @ctz of big integers 2024-02-12 05:25:07 +01:00
mem
meta AstGen: add error for redundant comptime var in comptime scope (#18242) 2024-01-09 20:09:39 -05:00
net remove std.io.Mode 2024-02-01 15:22:36 +02:00
os std.os.emscripten: fix regression caused by code cleanup in std.os.wasi (Closes #19019) 2024-02-21 17:09:29 -08:00
Random x86_64: implement shifts of big integers 2024-02-12 05:25:07 +01:00
sort lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
tar tar: rename reader to iterator 2024-01-13 19:37:33 -07:00
Target std.Target.Query: avoid using builtin.target.abi 2024-02-02 20:43:01 -07:00
testing
Thread Add timedWait to std.Thread.Semaphore (#18805) 2024-02-13 11:51:42 -06:00
time
tz
unicode
valgrind
zig std.zig.system.linux: detect risc-v 2024-02-19 10:12:17 +02:00
array_hash_map.zig std: remove meta.trait 2023-11-22 13:24:27 -05:00
array_list.zig std.ArrayList: pedantic fixups to previous commit 2024-01-19 16:24:51 -07:00
ascii.zig
atomic.zig rework std.atomic 2023-11-22 19:08:55 -07:00
base64.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
bit_set.zig Merge pull request #17852 from ziglang/zig-reduce 2023-11-04 14:25:50 -04:00
BitStack.zig
bounded_array.zig
buf_map.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
buf_set.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
Build.zig std.Build: fix wrong variable used in parseTargetQuery 2024-02-15 00:00:06 -08:00
builtin.zig Merge pull request #18875 from ziglang/macho-zo-dwarf 2024-02-09 23:12:04 +01:00
c.zig std.os.termios: fix tc flag types for macos 2024-02-15 02:08:18 -05:00
child_process.zig std: fix copy-paste typo in spawnWindows 2024-02-17 21:49:00 -08:00
coff.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
compress.zig reorganize compress package root folder 2024-02-14 23:34:13 +01:00
comptime_string_map.zig do not enforce function parameters to be marked comptime if only called at comptime 2024-01-19 15:31:18 -08:00
crypto.zig x86_64: implement 128-bit builtins 2023-10-23 22:42:18 -04:00
debug.zig add deflate implemented from first principles 2024-02-14 18:28:20 +01:00
dwarf.zig dwarf: optimize dwarf parsing for speed 2024-02-18 14:11:06 +01:00
dynamic_library.zig some API work on std.c, std.os, std.os.wasi 2024-02-11 13:38:55 -07:00
elf.zig lib/std/elf: refactor reloc enum values 2024-02-17 13:13:03 +01:00
enums.zig Work around stage1 not yet returning null-terminated @typeInfo strings 2024-01-07 16:21:08 +01:00
fifo.zig std: eliminate some uses of usingnamespace 2024-02-01 20:30:42 +00:00
fmt.zig x86_64: fix assert location 2024-02-12 05:25:07 +01:00
fs.zig remove std.io.Mode 2024-02-01 15:22:36 +02:00
gpu.zig std: add gpu namespace 2024-02-05 11:55:14 +03:30
hash.zig
hash_map.zig Module: fix @embedFile of files containing zero bytes 2024-02-22 12:33:53 -08:00
heap.zig std: eliminate some uses of usingnamespace 2024-02-01 20:30:42 +00:00
http.zig Remove some @as coercions from assertions 2024-01-03 21:20:48 +01:00
Ini.zig
io.zig Merge pull request #18712 from Vexu/std.options 2024-02-09 13:38:42 -08:00
json.zig x86_64: pass more tests 2023-10-25 04:28:30 -04:00
leb128.zig Dwarf: improve x86_64 backend debug info 2023-11-12 03:21:52 -05:00
linked_list.zig Revert "std.SinglyLinkedList: add sort function" 2023-11-24 22:33:50 -07:00
log.zig Buffer the logging function 2024-02-09 14:02:57 -08:00
macho.zig std.macho: add segment flags 2024-01-24 12:48:12 +01:00
math.zig std.math: add wrap function (#18154) 2024-01-14 20:45:39 -05:00
mem.zig x86_64: implement @clz and @ctz of big integers 2024-02-12 05:25:07 +01:00
meta.zig std.fmt: fix formatting slices of structs with custom formatting 2024-02-03 21:47:55 +00:00
multi_array_list.zig Correct expected/actual parameter order of some assertions 2024-01-03 21:20:49 +01:00
net.zig remove std.io.Mode 2024-02-01 15:22:36 +02:00
once.zig x86_64: fix std test failures 2023-11-03 23:18:21 -04:00
os.zig update root.os.system override to require "system" field, this allows easier overriding of os.heap.page_allocator 2024-02-22 21:33:58 +02:00
packed_int_array.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
pdb.zig remove std.io.Mode 2024-02-01 15:22:36 +02:00
priority_dequeue.zig Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
priority_queue.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
process.zig doc: fix typo in getEnvMap 2024-02-07 12:41:40 +02:00
Progress.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
Random.zig Fixup filename casing 2024-02-08 15:39:28 +01:00
RingBuffer.zig std.RingBuffer.zig: Fix typo in readLastAssumeLength 2023-11-21 13:55:09 +02:00
segmented_list.zig x86_64: implement enough to pass unicode tests 2023-10-23 22:42:18 -04:00
SemanticVersion.zig
simd.zig Deprecate suggestVectorSize in favor of suggestVectorLength 2024-01-01 16:18:57 +01:00
sort.zig Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
start.zig std.start: remove event loop integration 2024-02-01 15:22:36 +02:00
start_windows_tls.zig
std.zig some API work on std.c, std.os, std.os.wasi 2024-02-11 13:38:55 -07:00
tar.zig Permits tar directory path without trailing slash 2024-01-15 18:31:32 +02:00
Target.zig spirv: basic shader support 2024-02-05 11:55:14 +03:30
testing.zig std.testing.expectEqualSlices: some improvements 2024-01-08 00:13:21 -07:00
Thread.zig std.os.linux.MAP: use a packed struct 2024-02-06 21:12:11 -07:00
time.zig some API work on std.c, std.os, std.os.wasi 2024-02-11 13:38:55 -07:00
treap.zig Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
tz.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
unicode.zig Fix fmt UTF-8 characters as fill (#18533) 2024-01-13 22:47:03 -05:00
Uri.zig std.Uri: change specifier for printing with scheme to semicolon ; 2024-01-18 09:13:04 +02:00
valgrind.zig
wasm.zig fix typo in wasm atomic opcodes doc comment 2024-02-04 00:25:05 +01:00
zig.zig Zir: store extra source hashes required for incremental 2024-02-04 18:38:39 +00:00