zig/test
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
..
behavior Module: fix @embedFile of files containing zero bytes 2024-02-22 12:33:53 -08:00
c_abi llvm: fix c abi for structs not passed in registers 2024-02-20 23:36:47 +01:00
c_import c_import: extract behavior tests that use @cImport 2024-02-20 18:44:43 +01:00
cases Liveness: do not elide safety-checked instructions 2024-02-20 12:10:29 +00:00
link Merge pull request #18875 from ziglang/macho-zo-dwarf 2024-02-09 23:12:04 +01:00
src Merge pull request #18712 from Vexu/std.options 2024-02-09 13:38:42 -08:00
standalone std: make options a struct instance instead of a namespace 2024-02-01 15:22:36 +02:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig Module: fix @embedFile of files containing zero bytes 2024-02-22 12:33:53 -08:00
c_import.zig c_import: extract behavior tests that use @cImport 2024-02-20 18:44:43 +01:00
cases.zig zig build system: change target, compilation, and module APIs 2024-01-01 17:51:18 -07:00
cbe.zig InternPool: make more use of NullTerminatedString.Slice 2024-02-16 00:27:25 -08:00
compare_output.zig std: make options a struct instance instead of a namespace 2024-02-01 15:22:36 +02:00
compile_errors.zig zig build system: change target, compilation, and module APIs 2024-01-01 17:51:18 -07:00
gen_h.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
link.zig test/link/macho: migrate all tests to the new test matrix 2024-01-24 12:34:40 +01:00
llvm_targets.zig rename std.zig.CrossTarget to std.Target.Query 2024-01-01 17:51:18 -07:00
nvptx.zig zig build system: change target, compilation, and module APIs 2024-01-01 17:51:18 -07:00
run_translated_c.zig tests: translate-c and run-translated-c to the test harness 2023-10-17 11:55:17 +03:00
stack_traces.zig test/stack_traces.zig: add err union switch case 2024-01-18 15:10:32 +11:00
standalone.zig remove tool: update-license-headers 2024-01-07 17:02:17 -07:00
tests.zig c_import: extract behavior tests that use @cImport 2024-02-20 18:44:43 +01:00
translate_c.zig rename std.zig.CrossTarget to std.Target.Query 2024-01-01 17:51:18 -07:00