Tcl_GetsObjCmd corrupts freed object
Closed / Duplicate442664ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-07-19 06:11:49
It appears to me that Tcl_GetsObjCmd has the potential to corrupt a freed object when objc == 3. This is because it retrieves resultPtr and then subsequently calls Tcl_ObjSetVar2, which invalidates the resultPtr object. I will attach a patch which I believe to be correct.
dgpplain2001-07-19 23:52:35
Logged In: YES user_id=80530 Duplicate of 442665.
Log in (anonymous is fine) to add a comment.