diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-07-26 20:05:54 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-07-26 20:05:54 -0700 |
| commit | ea3db3274d890b7d00c907c037ffe203f41adbd3 (patch) | |
| tree | eb21fc1c8c8edbdedc37c4913f8d88f97f090310 /src/codegen/spirv | |
| parent | 0bc4726e00e794be9848b4b42dba43a0c7f4558e (diff) | |
| download | zig-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/spirv')
0 files changed, 0 insertions, 0 deletions
