aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-07-26 20:05:54 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-07-26 20:05:54 -0700
commitea3db3274d890b7d00c907c037ffe203f41adbd3 (patch)
treeeb21fc1c8c8edbdedc37c4913f8d88f97f090310 /src/codegen
parent0bc4726e00e794be9848b4b42dba43a0c7f4558e (diff)
downloadzig-ea3db3274d890b7d00c907c037ffe203f41adbd3.tar.gz
zig-ea3db3274d890b7d00c907c037ffe203f41adbd3.zip
link: avoid passing bad ptrs to pwritev
At least on Linux, the pwritev syscall checks the pointer and returns EFAULT before it checks if the length is nonzero. Perhaps this should be fixed in the standard library, however, these are still improvements since they make the kernel do less work within the syscall.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions