Safely log unknown Telnet options and commands
authorJeremy Stanley <fungi@yuggoth.org>
Sun, 3 Feb 2019 00:07:36 +0000 (00:07 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sun, 3 Feb 2019 00:07:36 +0000 (00:07 +0000)
commitde5bbdac1277ea31cb7e2fda1ad0df1595dc04ad
treeee5b471ddf03a94092dc5ec044acc34e05e30e27
parent52d18039ae407b9c30b4b852c99e187b09854b81
Safely log unknown Telnet options and commands

During Telnet negotiation, log unknown options by numeric value if
there is no listed name for them. Do the same for unknown Telnet
commands, though in reality this should never happen as they get
filtered by the existing implementation. Add regression testing to
make certain the crash bug which this fixes doesn't recur.
mudpy/telnet.py
mudpy/tests/selftest.py