[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Cannot resolve domain names longer than 64 characters on linux (Issue #619)

smalltalking notifications at github.com
Thu Mar 17 10:54:16 UTC 2022


SocketPlugin uses a buffer of size MAXHOSTNAMELEN + 1 on [unix](https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/6d38f13347be1031168b8b02e8ca52dc1b74be1c/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c#L212).
The value of that constant is 64 on linux. A domain name can have up to 255 octets with each label having up to 63 octets.
So, 64 is definitely not the right value, nor is MAXHOSTNAMELEN, because the buffer is there to store a domain name, not a host name.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/619
You are receiving this because you are subscribed to this thread.

Message ID: <OpenSmalltalk/opensmalltalk-vm/issues/619 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20220317/c93236e4/attachment.html>


More information about the Vm-dev mailing list