Wrong Arguments on Tcl_ListObjReplace crash system
Closed / Fixed218212ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:54:34
OriginalBugID: 2528 Bug
Version: 8.1
SubmitDate: '1999-08-12'
LastModified: '1999-12-03'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Linux
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-12-03'
Name:
Matthias Jung
CVS:
* SCCS: @(#) tclListObj.c 1.53 98/01/06 11:08:29
ReproducibleScript:
Create a Tcl_List with two elements. Now try
Tcl_ListObjReplace((Tcl_Interp*)0, list 1, 2, ...)
Tcl_ListObjReplace will try to free nonexisting list elements which
crashes
the system.
ObservedBehavior:
The System crash is undesireble.
DesiredBehavior:
Tcl_ListObjReplace should panic, at least,
so the user knows something is wrong with the arguments.
There is not enough info here to duplicate anything.
As of 8.2, the ranges are checked against the size of the list.
-- 12/03/1999 hobbs
welch Closed ticket [218212ffff].
[History diff]2000-10-26 08:16:57
Log in (anonymous is fine) to add a comment.