[Tarantool-patches] [PATCH] app: verify unix socket path length in socket.tcp_server()
Chris Sosnin
k.sosnin at tarantool.org
Sat Feb 22 19:43:12 MSK 2020
Hi! Thank you for the review!
> 22 февр. 2020 г., в 19:28, Vladislav Shpilevoy <v.shpilevoy at tarantool.org> написал(а):
>
> 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.
I’m sorry, I was very careless. The fix is pushed:
+-- 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) == nil and errno() == errno.ENOBUFS
More information about the Tarantool-patches
mailing list