#1554 Tcl_GetsObjCmd corrupts freed object

obsolete: 8.3.1
closed-duplicate
Don Porter
5
2001-07-19
2001-07-19
Anonymous
No

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.

Discussion

  • Don Porter
    Don Porter
    2001-07-19

    Logged In: YES
    user_id=80530

    Duplicate of 442665.

     
  • Don Porter
    Don Porter
    2001-07-19

    • labels: 105657 --> 24. Channel Commands
    • assigned_to: nobody --> dgp
    • status: open --> closed-duplicate