<i>Need test to ensure %p is not exposed to scripts</i> status still Open with 3 other changes
by
.
D 2017-04-03T12:54:34.010
J icomment Concern\sunderstood!\sHowever,\ssince\sTcl_AppendPrintfToObj\suses\sthe\sinternal\s"format"\smachinery,\sit's\snot\seasy\sto\sgenerate\san\serror\sout\sof\sthis\ssituation.\sBesides...\sSince\son\sthe\sscript\slevel,\sTcl\sdoesn't\sknow\spointers,\sit's\sactually\snot\sdangerous\sat\sall!\r\n\r\nSince\s"%p"\sis\sequal\sto\s"%#llx"\son\s64-bit\splatforms\sand\s"%#x"\son\s32-bit\splatforms,\sthere\sis\sno\sway\sthat\spointers\svalues\scan\sbe\saccessed.\sAdded\stest-cases\snow\sto\sshow\sthat.\sSince\sneither\s"%#llu"\snor\s"%#u"\sform\sany\ssecurity\srisk,\sI\sclaim\sthat\sneither\sdoes\s"%p".\sThe\sdanger\sonly\soccurs\swhen\sa\spointer\sis\saddressed,\sbut\sthat's\simpossible\sto\sbe\sdone\sfrom\sthe\sscript\slevel.\sOnly\sprinting\sthe\svalue\scan\snever\sdo\sany\sharm.
J login jan.nijtmans
J mimetype text/plain
K 51ded417dde97f04b68eb6710ff16e31fa7b9906
U jan.nijtmans
Z 2fb7767aa6fecc1de63bd77c2167fffc