Skip to content
Tcl Source Code View Ticket
Login

View Ticket

interp object alias command can segfault

Closed / Fixed479650ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-11-08 16:42:39
It's possible to crash tcl apps by the following commands:
interp create a
a alias

The patch adds an extra argument check to avoid this
and a test to check this result.
patthoytsplain2001-11-08 23:43:16
File Added - 13021: slaveobjcmd.patch
dgpplain2001-11-09 07:47:57
Logged In: YES 
user_id=80530

While you're fixing the argument processing of
the [$slave] interp command, fix this one too:

% interp create slave
slave
% slave issafe I can add as many arguments as a I like
0
dgpplain2001-11-09 07:50:27
Logged In: YES 
user_id=80530

Likewise for

% slave aliases extra args that are ignored
hobbsplain2001-11-17 05:29:59
Logged In: YES 
user_id=72656

patched with extra stuff from dgp for 8.4a4cvs.
Log in (anonymous is fine) to add a comment.

Attachments: