bug-inetutils
[Top][All Lists]
Advanced

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

telnet: Handle integer overflow gracefully.


From: Collin Funk
Subject: telnet: Handle integer overflow gracefully.
Date: Fri, 23 Aug 2024 22:56:30 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

I've pushed the attached patch removing an integer overflow from telnet.

The overflow occurs went sending 'send dont <value>' but the value
exceeds INT_MAX.

Also, I'm adding inttypes and xstrtoimax from Gnulib. Perhaps it is too
much personal opinion but I find error checking strtol and friends
annoying. I'd prefer using xstrtoimax, since it deals with all the
conditions and platform discrepancies. But feel free to change to a
standard function if you'd like.

Collin

Attachment: 0001-telnet-Handle-integer-overflow-gracefully.patch
Description: Text Data


reply via email to

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