https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118162

--- Comment #1 from Michel Morin <mimomorin at gmail dot com> ---
Strictly speaking the `writev` syscall with large counts (and the attached
testcase) succeed on macOS 10.xx. It seems that the restriction described in
manpage ("… return the following errors … the sum of the iov_len values in the
iov array overflows a 32-bit integer") is only implemented on macOS 11 and
later.
But I think applying the fix without conditioning on macOS versions is
beneficial, since the `write` syscall has the restriction (i.e. "… will fail …
if the value provided for nbyte exceeds INT_MAX") on any macOS versions.

Reply via email to