0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/std
Andrew Kelley 1d2fc446bd
cap getdents length argument to INT_MAX
the linux syscall treats this argument as having type int, so passing
extremely long buffer sizes would be misinterpreted by the kernel.
since "short reads" are always acceptable, just cap it down.

patch based on musl commit 3d178a7e2b75066593fbd5705742c5808395d90d
History 2019-07-08 17:52:28 -04:00
..
atomic heap: make one global instance of DirectAllocator 2019-06-22 14:10:53 -04:00
build rename std lib files to new convention 2019-03-02 16:46:04 -05:00
c std: MAP_FAILED is a libc concept on linux 2019-07-07 17:15:30 +10:00
crypto std: add gimli permutation to crypto 2019-06-16 22:55:38 -04:00
debug Fix off-by-one error in LEB128 parsing 2019-05-15 11:11:16 -04:00
event avoid std.debug.global_allocator in http headers tests 2019-06-27 15:38:40 -04:00
fmt different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
fs different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
hash different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
heap fixups 2019-06-27 12:04:14 -04:00
http avoid std.debug.global_allocator in http headers tests 2019-06-27 15:38:40 -04:00
io add missing error code for DeleteFileW 2019-06-26 14:32:19 -04:00
json json tests do not need this prefix anymore 2019-04-29 14:04:31 -04:00
math breaking: Add positional, precision and width support to std.fmt 2019-06-21 20:11:15 +12:00
meta different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
os cap getdents length argument to INT_MAX 2019-07-08 17:52:28 -04:00
rand rename std lib files to new convention 2019-03-02 16:46:04 -05:00
special code formatting 2019-07-05 14:14:25 -04:00
time more fixes for windows and wasi 2019-05-27 01:35:58 -04:00
valgrind ran zig fmt on stdlib 2019-05-19 16:33:31 -04:00
zig Make anyerror not a keyword 2019-07-06 15:57:32 -07:00
array_list.zig different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
ascii.zig different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
atomic.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
base64.zig different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
buf_map.zig heap: make one global instance of DirectAllocator 2019-06-22 14:10:53 -04:00
buf_set.zig heap: make one global instance of DirectAllocator 2019-06-22 14:10:53 -04:00
buffer.zig clean up references to os 2019-05-26 18:32:44 -04:00
build.zig expose glibc version in builtin 2019-07-07 17:56:43 -04:00
c.zig std.os.getrandom does a libc version check 2019-07-08 14:42:28 -04:00
child_process.zig code formatting 2019-07-05 14:14:25 -04:00
coff.zig added init function for Coff 2019-06-29 13:56:23 -05:00
crypto.zig std: add gimli permutation to crypto 2019-06-16 22:55:38 -04:00
cstr.zig tests passing on linux 2019-05-26 23:35:26 -04:00
debug.zig workaround for no equality operator for enum literal and tagged union 2019-07-03 18:41:52 -04:00
dwarf.zig Recover symbol infos from DWARF sections 2019-04-20 10:35:39 +02:00
dynamic_library.zig update load dynamic library test for std lib changes 2019-05-30 00:04:11 -04:00
elf.zig starting to fix the regressions 2019-05-26 18:32:44 -04:00
event.zig update std lib API for I/O 2018-09-30 17:28:35 -04:00
fmt.zig Remove #2725 workaround 2019-06-27 21:50:24 +12:00
fs.zig different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
hash.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
hash_map.zig heap: make one global instance of DirectAllocator 2019-06-22 14:10:53 -04:00
heap.zig fixups 2019-06-27 12:04:14 -04:00
http.zig std: add std.http.Headers field 2019-06-11 22:54:40 +10:00
io.zig temporarily simplify test_runner.zig 2019-06-11 14:46:46 -04:00
json.zig Update for new fmt.zig formatting 2019-06-30 22:25:03 +12:00
lazy_init.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
linked_list.zig std: Add singly linked list 2019-06-10 15:41:40 +10:00
macho.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
math.zig Fix absFloat 2019-06-20 19:34:22 -04:00
mem.zig Add check for power of 2 to std.mem.alignBackward 2019-06-27 22:23:09 +01:00
meta.zig different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
mutex.zig heap: make one global instance of DirectAllocator 2019-06-22 14:10:53 -04:00
net.zig net: quickfix on non-existing Address.family 2019-06-26 13:24:51 -04:00
os.zig std.os.getrandom does a libc version check 2019-07-08 14:42:28 -04:00
packed_int_array.zig heap: make one global instance of DirectAllocator 2019-06-22 14:10:53 -04:00
pdb.zig fixes for Windows and WASI 2019-05-27 00:48:56 -04:00
priority_queue.zig different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
process.zig Remove const on argsAlloc 2019-06-13 11:42:17 -04:00
rand.zig fix array literal syntax 2019-06-10 00:39:40 -04:00
rb.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
segmented_list.zig heap: make one global instance of DirectAllocator 2019-06-22 14:10:53 -04:00
sort.zig different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
spinlock.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
statically_initialized_mutex.zig heap: make one global instance of DirectAllocator 2019-06-22 14:10:53 -04:00
std.zig uncomment passing std lib tests 2019-06-23 01:29:18 -04:00
testing.zig std: testing.expectEqual on structs now works 2019-06-10 14:39:44 +10:00
thread.zig thread.spawn: bubble up mprotect error.OutOfMemory 2019-05-28 12:46:44 -04:00
time.zig windows does not integrate cleanly with libc 2019-05-27 15:55:15 -04:00
unicode.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
valgrind.zig Fix formatting for multiline asm expressions 2019-05-13 12:20:11 -04:00
zig.zig zig fmt on the standard library 2019-05-12 12:56:01 -04:00