]> git.ipfire.org Git - thirdparty/curl.git/commit
telnet: handle single-byte input option
authorDaniel Stenberg <daniel@haxx.se>
Mon, 13 Jan 2025 11:16:19 +0000 (12:16 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 Jan 2025 13:29:02 +0000 (14:29 +0100)
commit02ba03938f9f91e1b96b8a9223aa5bc183550f8a
treea4163c53fc983fc9779f9d73acb4b1a318e401e7
parent81a25ba7a420df67013b320b71f3548a32e50360
telnet: handle single-byte input option

Coverity CID 1638753 correctly identies this code misbehaved if the
passed in suboption is exactly one byte long by substracting two from
the unsigned size_t variable.

Closes #15987
lib/telnet.c