https://bugs.winehq.org/show_bug.cgi?id=37669
--- Comment #11 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Sebastian Lackner from comment #10)
I don't agree, it could cause regressions. At the moment recvmsg just fails with EFAULT, but when you replace that with your suggested solution it will crash.
recvmsg msg fails with EFAULT when it shouldn't, and that was very hard to track down. I'd prefer it would crash instead.
As mentioned before, on Windows passing invalid pointers to WSA functions doesn't cause an exception.
Neither under Wine.