Overview
| Artifact ID: | 465f44380864ad8849dc628f8009653ed16dd94c |
|---|---|
| Ticket: | 51ded417dde97f04b68eb6710ff16e31fa7b9906
Need test to ensure %p is not exposed to scripts |
| User & Date: | jan.nijtmans on 2017-04-03 12:54:34 |
Changes
- icomment:
Concern understood! However, since Tcl_AppendPrintfToObj uses the internal "format" machinery, it's not easy to generate an error out of this situation. Besides... Since on the script level, Tcl doesn't know pointers, it's actually not dangerous at all! Since "%p" is equal to "%#llx" on 64-bit platforms and "%#x" on 32-bit platforms, there is no way that pointers values can be accessed. Added test-cases now to show that. Since neither "%#llu" nor "%#u" form any security risk, I claim that neither does "%p". The danger only occurs when a pointer is addressed, but that's impossible to be done from the script level. Only printing the value can never do any harm.
- login: "jan.nijtmans"
- mimetype: "text/plain"