Overview
Artifact ID: | 532ca439bb9842506b18ead8c12d6c3a152bbfb5969ec04c13b06359398acf44 |
---|---|
Ticket: | fc1409fc9193f33f39f7e6ea353364a9a4b8048c
TclOO method with non-literal value for body argument causes segmentation fault |
User & Date: | pooryorick 2017-10-19 21:26:13 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
The following script causes a segmentation fault: <code><verbatim> ::oo::objdefine oo::object { method m1 {} [string map {a b} hello] } oo::copy oo::object obj1 obj1 m1 </verbatim></code> This is a regression cause by the fix to bug 3609693. In TclOOMethod.c/CloneProcedureMethod, <code>TclFreeIntRep(bodyObj)</code> occurs on a Tcl_Obj that has no string representation. The solutions is to call <code>Tcl_GetString(bodyObj)</code> first.
- is_private changed to: "0"
- login: "pooryorick"
- priority changed to: "5 Medium"
- private_contact changed to: "e476148cded301ffff84bcdc432536dc0c949e88"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "pooryorick"
- subsystem changed to: "35. TclOO Package"
- title changed to:
TclOO method with non-literal value for body argument causes segmentation fault
- type changed to: "Bug"