Menu

#8 string/list conversion bug

open
lewca43
Server (5)
5
2002-02-26
2002-02-26
No

Hi,

you can easily crash the server by typing a quote (") or
single brace ({) to the chat window. This is due to a list/string
conversion bug which seems to be quite popular with tcl
programmers. (Including myself... ;)

To fix this
misbehaviour, I suggest replacing

switch -- [lindex $message 0]
{

with

switch -- [lindex [split $message] 0] {

in
server/RTServer.tcl, line 389

Discussion


Log in to post a comment.