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)
commitc01384b805b4b52135264015e35011431710a659
treeee5b471ddf03a94092dc5ec044acc34e05e30e27
parent3b142cb416a70a899413ba3f6df73297e22f7ffa
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