Ethereal-dev: [Ethereal-dev] Malformed TELNET options cause Ethereal 0.8.18 to crash

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Ralf Doewich" <ralf.doewich@xxxxxxxxxxxxxx>
Date: Mon, 2 Jul 2001 12:10:48 -0400
IAC followed by DO immediately followed by another IAC (Note: option missing
after DO) and the next (therefore) misaligned decode attempt causes Ethereal
0.8.18 to crash with the error message: Gdk-WARNING **: gdk_text_size:
gdk_nmbstowchar_ts failed.

The full sequence leading to the crash:

FF FD FF FB 01 FF FB 03
IAC, DO, <suppress GA missing>, IAC, WILL, ECHO, IAC, WILL, suppress GA

is being decoded as:

- Command: Do <unknown option>	FF FD FF
-					FB 01
- Command: Will Suppress Go Ahead	FF FB 03

Adding a sanity check might avoid the crash in case of malformed options.

Ralf.

Ralf Doewich
Optima Tele.com, Inc.
112 Tea Rose Street, Markham, Ontario, L6C 1X3,  Canada
Vox (905) 887-4176, ext. 608         Fax (905) 887-4178
ralf.doewich@xxxxxxxxxxxxxx   http://www.OptimaTele.com