aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-07-08 17:52:28 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-07-08 17:52:28 -0400
commit1d2fc446bd1cf90fb93a1164538dcc4530a06d33 (patch)
treece0358206c00d93bf1524eefab28a6045c679ec6 /src/link.cpp
parentfc9e28ea37e0110836d6958c39ffe78ea6cad0f3 (diff)
downloadzig-1d2fc446bd1cf90fb93a1164538dcc4530a06d33.tar.gz
zig-1d2fc446bd1cf90fb93a1164538dcc4530a06d33.zip
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
Diffstat (limited to 'src/link.cpp')
0 files changed, 0 insertions, 0 deletions