[Tarantool-patches] [PATCH] app: verify unix socket path length in socket.tcp_server()
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sat Feb 22 19:28:46 MSK 2020
Hi! Thanks for the patch!
> diff --git a/test/app/socket.result b/test/app/socket.result
> index 9829df138..f47d06935 100644
> --- a/test/app/socket.result
> +++ b/test/app/socket.result
> @@ -1614,6 +1614,14 @@ socket.getaddrinfo('host', 'port', { flags = 'WRONG' }) == nil and errno() == er
> ---
> - true
> ...
> +-- gh-4634: verify socket path length in socket.tcp_server.
> +long_port = string.rep('a', 110)
> +---
> +...
> +socket.tcp_server('unix/', long_port, function(s) end) == errno.ENOBUF
Both function result and errno.ENOBUF are nil. No wonder they are equal.
More information about the Tarantool-patches
mailing list