aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-03-13 18:23:17 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-03-15 10:48:15 -0700
commite098b287e18b8a7a4df0fdb48d32fb4376daba07 (patch)
treeae36d182b8fd3e3b8ee06dad0558fa3c08c4a52f /src
parentb1299d515351acbfa1f169c8e65a3fa2b3e39f1a (diff)
downloadzig-e098b287e18b8a7a4df0fdb48d32fb4376daba07.tar.gz
zig-e098b287e18b8a7a4df0fdb48d32fb4376daba07.zip
std.fs.File.writevAll: fix behavior for 0-length vectors
The OS layer expects pointer addresses to be inside the application's address space even if the length is zero. Meanwhile, in Zig, slices may have undefined pointer addresses when the length is zero. So this function now modifies the iov_base fields when the length is zero. This is a companion commit to b4893eb05565b2cb033c6ed88617d73faf878455.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions