Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-11-17
05:29 • Closed ticket [479650ffff]: interp object alias command can segfault plus 7 ... artifact: 1077e47417 user: hobbs
2001-11-09
07:50 • Ticket [479650ffff]: 4 changes artifact: 613179be33 user: dgp
07:47 • Ticket [479650ffff]: 4 changes artifact: b5d3a496bc user: dgp
2001-11-08
23:43 • Ticket [479650ffff]: 4 changes artifact: 8f2ea10a9e user: patthoyts
23:43 • Add attachment slaveobjcmd.patch to ticket [479650ffffffffff|479650ffff... artifact: fa16722a75 user: patthoyts
16:42 • New ticket [479650ffff] interp object alias command can segfault. artifact: bf618d1e24 user: patthoyts

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: