zig/lib/std
John Schmidt 23d148e5c7 debug: fix edge cases in macOS debug symbol lookup
This commit fixes two related things:

1. If the loop goes all the way through the slice without a match, on
   the last iteration `mid == symbols.len - 1` which causes
   `&symbols[mid + 1]` to be out of bounds. End one step before that
   instead.

2. If the address we're looking for is greater than the address of the
   last symbol in the slice, we now match it to that symbol. Previously,
   we would miss this case since we only matched if the address was _in
   between_ the address of two symbols.
2022-02-02 22:06:32 -07:00
..
atomic allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
build Add test executable builds to build.zig 2021-12-06 14:55:35 -06:00
c std: Add some missing termios types to c/linux.zig and os.zig 2022-02-02 21:23:34 -07:00
compress allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
crypto std: break up some long lines 2022-02-02 22:00:55 -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: fix out-of-bounds array write in float printing 2022-02-02 22:01:47 -07:00
fs Merge pull request #10404 from ominitay/iterator 2022-02-02 22:04:36 -07:00
hash allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
heap stage1: deal with BPF not supporting @returnAddress() 2021-12-19 23:22:05 -08:00
io readUntilDelimiter*: read only if buffer not full 2022-02-02 21:25:03 -07:00
json allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
math Fix overflow in std.math.isNormal when applied to -Inf or a negative NaN 2022-02-02 22:03:47 -07:00
mem Allocator: allocBytes and reallocBytes (#10352) 2021-12-19 01:58:13 -05:00
meta std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
net Merge pull request #10576 from schmee/macos-resolve-ip 2022-02-02 21:12:24 -07:00
os fchown: use the 32-bit uid/gid variant of the syscall on 32-bit linux targets 2022-02-02 22:00:06 -07:00
rand Add argument for fillFn to Random.init 2021-10-29 19:20:31 -04:00
special zig test: fix test runner detection of tty 2021-12-18 23:45:32 -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 Fix a bug in std.Thread.Condition and add a basic Condition test. (#10538) 2022-01-12 11:59:09 -07:00
time std.time.epoch: fix issue in documentation 2021-12-16 19:08:58 -08: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 Merge pull request #10576 from schmee/macos-resolve-ip 2022-02-02 21:12:24 -07:00
zig fmt: handle doc comments on struct members 2022-02-02 22:01:38 -07:00
array_hash_map.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
array_list.zig allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00: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 9944: make allocator the first argument (excl. self) 2021-12-03 16:42:59 -08:00
bounded_array.zig std.bounded_array: support inserting a new value at the end (#10340) 2021-12-15 20:10:34 +01:00
buf_map.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
buf_set.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
build.zig Merge pull request #10475 from lithdew/master 2022-02-02 21:19:18 -07:00
builtin.zig AstGen: implement @prefetch() builtin 2021-12-10 23:09:02 +01:00
c.zig Merge pull request #10576 from schmee/macos-resolve-ip 2022-02-02 21:12:24 -07:00
child_process.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
coff.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
compress.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
comptime_string_map.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
crypto.zig std.crypto.random: Randoms are no longer passed by reference 2022-02-02 21:46:22 -07:00
cstr.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
debug.zig debug: fix edge cases in macOS debug symbol lookup 2022-02-02 22:06:32 -07: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 Fix dead link 2021-12-31 14:19:36 -07:00
enums.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -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 std.fmt: fix out-of-bounds array write in float printing 2022-02-02 22:01:47 -07:00
fs.zig Merge pull request #10404 from ominitay/iterator 2022-02-02 22:04:36 -07:00
hash.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
hash_map.zig std: hash_map: optimize isFree/isTombstone (#10562) 2022-01-12 11:58:24 -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 allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00: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 std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
mem.zig Update the documentation for std.mem.sliceTo for readability 2022-02-02 21:48:48 -07:00
meta.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
multi_array_list.zig Merge branch 'Jarred-Sumner-patch-1' 2022-02-02 21:14:59 -07:00
net.zig Merge pull request #10576 from schmee/macos-resolve-ip 2022-02-02 21:12:24 -07:00
once.zig std.Thread.Mutex: change API to lock() and unlock() 2021-11-09 18:31:03 -07:00
os.zig std: Add some missing termios types to c/linux.zig and os.zig 2022-02-02 21:23:34 -07: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-31 14:20:02 -07: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 fix argsAlloc buffer size 2022-02-02 22:04:02 -07:00
Progress.zig Fix test label off-by-one error (#10277). 2021-12-06 12:18:41 -08: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 fix startup procedure for async WinMain 2022-02-02 21:59:47 -07:00
start_windows_tls.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
std.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
target.zig glibc: update default cross-compile version to 2.19 2021-12-16 03:01:13 -07:00
testing.zig fix expectStringEndsWith error output. 2021-12-31 14:20:09 -07:00
Thread.zig Fix a bug in std.Thread.Condition and add a basic Condition test. (#10538) 2022-01-12 11:59:09 -07:00
time.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
unicode.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
valgrind.zig zig fmt: respect trailing commas in inline assembly 2021-08-29 11:57:32 +02:00
wasm.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
x.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
zig.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00