bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in telnet from inetutils-2.2: Insufficient buffer space for long


From: Erik Auerswald
Subject: Re: Bug in telnet from inetutils-2.2: Insufficient buffer space for longish DISPLAY names
Date: Sat, 5 Feb 2022 17:18:01 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Hi,

On 01.02.22 10:01, Erik Auerswald wrote:

I am a colleague of Joerg and could reproduce the bug on Ubuntu GNU/Linux
with a freshly built telnet client from GNU inetutils 2.2:
[...]
Thus the second hunk of the diff sent by Joerg is the actual bug fix,
i.e., retracting use of the X Display Location option.

To fix the bug, you can just copy line 1007 of telnet/telnet.c to
somewhere after line 1017, but before (current) line 1019, to treat
this error of a too long DISPLAY variable value similar to somehow
losing the DISPLAY variable after announcing to send the "X Display
Location" option.  The problem is similar, i.e., the telnet client
tells the server that it will send this option, but then detects
that it cannot do so.  Thus the solution should be similar, i.e.,
retracting use of the option and optionally emitting an error message.

I would be quite surprised if this description of the bug fix would
be copyrightable.

Anyway, a patch that not only fixes the problem, but also adjusts
the respective comment describing the problem and its solution,
and makes the error message more specific, is attached.

The diffstat looks as follows:

    $ diffstat inetutils-telnet-fix_too_long_DISPLAY_handling.patch
     telnet.c |    6 ++++--
     1 file changed, 4 insertions(+), 2 deletions(-)

Please let me know if you would like to use this patch, but would
first require me to complete copyright assignment paperwork.

Of course you can use Jörg's patch or write your own instead.

Best regards,
Erik

P.S. Please keep me in Cc: as I am not subscribed to this mailing list.

Attachment: inetutils-telnet-fix_too_long_DISPLAY_handling.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]