diff options
author | Jameson Nash <vtjnash@gmail.com> | 2019-06-11 14:27:18 -0400 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2019-10-08 21:55:30 +0200 |
commit | fdef604a1e25ac4a6df4abfff0f01b68a3a423b9 (patch) | |
tree | e88661cf635a9ffcc9ce82dc8253e7077f62f26e /docs/src | |
parent | bee1bf5dd7de8da316821c32411425f7cf7ab49c (diff) | |
download | libuv-fdef604a1e25ac4a6df4abfff0f01b68a3a423b9.tar.gz libuv-fdef604a1e25ac4a6df4abfff0f01b68a3a423b9.zip |
unix,udp: ensure addr is non-null
Update this code to be more in line with the Windows version.
Previously, callers (such as nodejs) might assume it was always safe to de-reference this parameter:
https://github.com/nodejs/node/blob/d2634be56258e2b957c1061c5f4d86792975bfa9/src/tcp_wrap.cc#L349 called from https://github.com/nodejs/node/blob/d2634be56258e2b957c1061c5f4d86792975bfa9/src/udp_wrap.cc#L567
I suspect this may have been unreachable, and that it was guaranteed by the kernel to be `>= sizeof(struct sockaddr)`, so this should be a NFC simplification.
PR-URL: https://github.com/libuv/libuv/pull/2330
Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions