|
2011-08-06
| ||
| 01:08 | • Closed ticket [3386385fff]: Tcl_RepresentationCmd: sprintf dislikes unitialized ... artifact: 8eccc51ac7 user: ferrieux | |
|
2011-08-04
| ||
| 21:08 | • New ticket [3386385fff]. artifact: 68bc53eddf user: msofer | |
Tcl_RepresentationCmd: sprintf dislikes unitialized ptrs
Closed / Wont Fix3386385fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-08-04 21:08:59
Sez valgrind on format.test: Conditional jump or move depends on uninitialised value(s) 0: vfprintf (vfprintf.c:1613) 1: vsprintf (iovsprintf.c:43) 2: sprintf (sprintf.c:34) 3: Tcl_RepresentationCmd (tclObj.c:4497) 4: TclNREvalObjv (tclBasic.c:4272) 5: TEBCresume (tclExecute.c:2789) 6: TclNRRunCallbacks (tclBasic.c:4314) 7: TclEvalObjEx (tclBasic.c:5885) 8: Tcl_EvalObjEx (tclBasic.c:5866) 9: Tcl_RecordAndEvalObj (tclHistory.c:190) -- format.test: ==5905== Conditional jump or move depends on uninitialised value(s)
ferrieuxplain2011-08-06 01:08:47
Though it is technically correct that not both ptr1 and ptr2 in the twoPtrValue of a Tcl_Obj are meaningful in all types, it is out of Tcl_RepresentationCmd's mission to keep track of that (since by definition it could be used on third-party types provided by extensions), hence perfectly valid for it to display a random hex value for the unused slots. Hence closing as Won't Fix (though I'd welcome a "valgrind pragma" -- if such beasts exist -- to silence the false alarm).
Log in (anonymous is fine) to add a comment.