#
1eac3310 |
| 10-Aug-2024 |
Ben Noordhuis |
linux: support abstract unix socket autobinding (#4499) Autobinding is a feature that lets the kernel pick a name for the abstract socket, instead of userspace having to provide one.
linux: support abstract unix socket autobinding (#4499) Autobinding is a feature that lets the kernel pick a name for the abstract socket, instead of userspace having to provide one. Two bugs that this change exposed are also fixed: 1. strlen(sa.sun_path) can read past the end if the file path is exactly sizeof(sa.sun_path) long (use memchr instead), and 2. don't return UV_ENOBUFS for abstract sockets when the buffer is exactly large enough to hold the result; per commit e5f4b79809, abstract socket names are not zero-terminated
show more ...
|
#
1dd0ab13 |
| 25-Dec-2023 |
Santiago Gimeno |
linux: fix bind/connect for abstract sockets (#4266) The `\0` character has no special significance in abstract sockets, so the addrlen field in both `bind()` and `connect()` should take
linux: fix bind/connect for abstract sockets (#4266) The `\0` character has no special significance in abstract sockets, so the addrlen field in both `bind()` and `connect()` should take that into account.
show more ...
|
#
6be130e1 |
| 16-Nov-2023 |
Ben Noordhuis |
unix,win: fix read past end of pipe name buffer (#4209) Passing a socket name without a trailing nul byte to uv_pipe_bind2() or (on Windows) uv_pipe_connect2() resulted in reading beyond
unix,win: fix read past end of pipe name buffer (#4209) Passing a socket name without a trailing nul byte to uv_pipe_bind2() or (on Windows) uv_pipe_connect2() resulted in reading beyond the end of the name buffer when copying or converting it. Fix that by copying the socket name to temporary storage first and add the trailing nul byte explicitly. Add a check for embedded nul bytes in the socket name. Fix a small memory leak in the Windows error path of uv_pipe_bind2().
show more ...
|
#
011a1ac1 |
| 06-Oct-2023 |
Pleuvens |
test: switch to new-style ASSERT_EQ macros (#4159) Switch from old-style ASSERT macro to new-style ASSERT_EQ,... macros. Using new-style macros makes it easier to debug test failure
test: switch to new-style ASSERT_EQ macros (#4159) Switch from old-style ASSERT macro to new-style ASSERT_EQ,... macros. Using new-style macros makes it easier to debug test failures Fixes: https://github.com/libuv/libuv/issues/2974
show more ...
|
#
b9b6db05 |
| 04-Jun-2023 |
Ben Noordhuis |
linux: support abstract unix sockets (#4030) Add two new APIs for binding and connecting to abstract UNIX sockets. Fixes: https://github.com/libuv/libuv/issues/4028
|
#
91a7e498 |
| 12-Mar-2023 |
Trevor Norris |
test: silence more valgrind warnings (#3917) Pass the loop to MAKE_VALGRIND_HAPPY() so it's explicit on which loop needs to be cleaned up. Since it asserts on uv_loop_close(), need to
test: silence more valgrind warnings (#3917) Pass the loop to MAKE_VALGRIND_HAPPY() so it's explicit on which loop needs to be cleaned up. Since it asserts on uv_loop_close(), need to remove a couple of those that were being done before the call. Cleanup where loop was assigned, so the entire test either uses loop or uv_default_loop(). Not both. Also take care of any reqs that may have been left uncleaned.
show more ...
|
Revision tags: v1.41.0 |
|
#
270d0518 |
| 29-Dec-2020 |
tjarlama |
test: move to ASSERT_NULL and ASSERT_NOT_NULL test macros Moving to new style test macros will make debugging easier in case of test failure and improve redability. This commit will repl
test: move to ASSERT_NULL and ASSERT_NOT_NULL test macros Moving to new style test macros will make debugging easier in case of test failure and improve redability. This commit will replace all ASSERT macros matching the statement: `ASSERT(identifier (== or !=) value);` to: `ASSERT_(NOT_)NULL(identifier);` Refs: https://github.com/libuv/libuv/issues/2974 PR-URL: https://github.com/libuv/libuv/pull/3081 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
Revision tags: v1.40.0, v1.39.0, v1.38.1 |
|
#
48cf8c82 |
| 08-Jun-2020 |
Ben Noordhuis |
unix,win: more uv_read_start() argument validation Return `UV_EINVAL` when one or more arguments are NULL. Fixes: https://github.com/libuv/help/issues/137 PR-URL: https://github
unix,win: more uv_read_start() argument validation Return `UV_EINVAL` when one or more arguments are NULL. Fixes: https://github.com/libuv/help/issues/137 PR-URL: https://github.com/libuv/libuv/pull/2795 Reviewed-By: Jameson Nash <vtjnash@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
show more ...
|
Revision tags: v1.38.0, v1.37.0, v1.36.0, v1.35.0, v1.34.2, v1.34.1, v1.34.0, v1.33.1, v1.33.0, v1.32.0, v1.31.0 |
|
#
ef218ced |
| 25-Jul-2019 |
Carlo Marcelo Arenas Belón |
test: avoid AF_LOCAL Linux specific and practically an alias of AF_UNIX which is POSIX PR-URL: https://github.com/libuv/libuv/pull/2388 Reviewed-By: Colin Ihrig <cjihrig@gm
test: avoid AF_LOCAL Linux specific and practically an alias of AF_UNIX which is POSIX PR-URL: https://github.com/libuv/libuv/pull/2388 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.30.1, v1.30.0, v1.29.1, v1.29.0, v1.28.0, v1.27.0, v1.26.0, v1.25.0, v1.24.1, v1.24.0, v1.23.2, v1.23.1, v1.23.0, v1.22.0, v1.21.0, v1.20.3, v1.20.2, v1.20.1, v1.20.0, v1.19.2, v1.19.1, v1.19.0, v1.18.0, v1.17.0, v1.16.1, v1.16.0, v1.15.0, v1.14.1, v1.14.0, v1.13.1, v1.13.0, v1.12.0 |
|
#
62165535 |
| 07-Apr-2017 |
Brad King |
test: skip self-connecting tests on cygwin The cygwin runtime library fails to connect a socket client to a listening server within the same thread. Test cases that use this approac
test: skip self-connecting tests on cygwin The cygwin runtime library fails to connect a socket client to a listening server within the same thread. Test cases that use this approach hang while waiting for the connection to complete. This can be reproduced independent of libuv in a simple example using both socket/bind/listen and socket/connect in a single thread. Avoid this problem in our test suite by skipping such tests on cygwin. PR-URL: https://github.com/libuv/libuv/pull/1312 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
Revision tags: v1.11.0, v1.10.2, v1.10.1, v1.10.0 |
|
#
63ab6414 |
| 10-Aug-2016 |
Saúl Ibarra Corretgé |
test: don't close CRT fd handed off to uv_pipe_t After 4ed29c2498408c99079f25bfc0c6aec5bfbf42c4 got fixed, when a CRT fd is handed off to a pipe handle using uv_pipe_open libuv will clos
test: don't close CRT fd handed off to uv_pipe_t After 4ed29c2498408c99079f25bfc0c6aec5bfbf42c4 got fixed, when a CRT fd is handed off to a pipe handle using uv_pipe_open libuv will close it properly, so it's an error to do so ourselves. PR-URL: https://github.com/libuv/libuv/pull/992 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
#
a6acc822 |
| 09-Aug-2016 |
Saúl Ibarra Corretgé |
test: fix OOB buffer access The test uses an annonymous pipe, which means the returned length will be 0. Fixes: https://github.com/libuv/libuv/issues/376 Fixes: https://gith
test: fix OOB buffer access The test uses an annonymous pipe, which means the returned length will be 0. Fixes: https://github.com/libuv/libuv/issues/376 Fixes: https://github.com/libuv/libuv/issues/529 Refs: https://github.com/libuv/libuv/issues/264 PR-URL: https://github.com/libuv/libuv/pull/981 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
Revision tags: v0.10.37, v1.9.1, v1.9.0 |
|
#
e5f4b798 |
| 20-Jan-2016 |
Saúl Ibarra Corretgé |
unix, win: consistently null-terminate buffers libuv has multiple functions which return buffers. Make them consistent with the following rules: the returned size *does not* include the
unix, win: consistently null-terminate buffers libuv has multiple functions which return buffers. Make them consistent with the following rules: the returned size *does not* include the null byte, but the buffer *is* null terminated. There is only one exception to the above: Linux abstract sockets, because null bytes are not used as string terminators in those. Refs: https://github.com/libuv/libuv/pull/674 PR-URL: https://github.com/libuv/libuv/pull/690 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.8.0, v1.7.5, v1.7.4, v1.7.3, v1.7.2, v1.7.1, v1.7.0, v1.6.1, v1.6.0, v1.5.0, v0.10.36, v1.4.2, v0.10.35, v1.4.1, v0.10.34, v1.4.0, v1.3.0, v0.10.33 |
|
#
39a0936f |
| 26-Jan-2015 |
Andrius Bentkus |
win, unix: add pipe_peername implementation PR-URL: https://github.com/libuv/libuv/pull/166 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
#
1e59ab1d |
| 23-Jan-2015 |
Andrius Bentkus |
fs, pipe: no trailing terminator in exact sized buffers uv_fs_poll_getpath, uv_pipe_getsockname, uv_fs_event_getpath used to return the trailing null terminator, even though the function
fs, pipe: no trailing terminator in exact sized buffers uv_fs_poll_getpath, uv_pipe_getsockname, uv_fs_event_getpath used to return the trailing null terminator, even though the functions returned the size. Fixes: https://github.com/libuv/libuv/issues/155 PR-URL: https://github.com/libuv/libuv/pull/159 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.2.1, v1.2.0, v0.10.32, v1.1.0, v0.10.31, v1.0.2, v0.10.30, v1.0.1, v1.0.0, v0.10.29, v1.0.0-rc2, v1.0.0-rc1, v0.11.29, v0.11.28, v0.11.27, v0.10.28 |
|
#
837c62c7 |
| 15-Jul-2014 |
Jameson Nash |
windows: make uv_read_stop immediately stop reading This implements locking around the blocking call to ReadFile to get around a Windows kernel bug where a blocking ReadFile operation on
windows: make uv_read_stop immediately stop reading This implements locking around the blocking call to ReadFile to get around a Windows kernel bug where a blocking ReadFile operation on a stream can deadlock the thread. This allows uv_read_stop to immediately cancel a pending IO operation, and allows uv_pipe_getsockname to "pause" any pending read (from libuv) while it retrieves the sockname information. If unsupported by the OS (pre-Vista), this reverts to the old (e.g. deadlock-prone) behavior Closes #1313
show more ...
|
Revision tags: v0.11.26, v0.10.27, v0.11.25, v0.11.24, v0.11.23, v0.10.26, v0.11.22, v0.11.21, v0.11.20 |
|
#
d3791bd4 |
| 24-Feb-2014 |
Saúl Ibarra Corretgé |
test: fix compilation warning on non-linux systems |
#
7677f62c |
| 24-Feb-2014 |
Saúl Ibarra Corretgé |
test: fix compilation warning |
Revision tags: v0.10.25, v0.11.19, v0.10.24, v0.11.18, v0.10.23, v0.10.22, v0.11.17, v0.10.21 |
|
#
5ac214c7 |
| 16-Dec-2013 |
Saúl Ibarra Corretgé |
unix, windows: add uv_pipe_getsockname |