Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6846d64693e556b3a1c1a08e4c39914065e010ac
Ticket: 51ded417dde97f04b68eb6710ff16e31fa7b9906
Need test to ensure %p is not exposed to scripts
User & Date: dkf on 2017-04-02 22:59:04
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/html"
  4. comment changed to:
    While it is fine to have Tcl's <code>Tcl_AppendPrintfToObj</code> (et al) accept <code>%p</code>, we definitely do not want that capability exposed to Tcl scripts. Therefore, we should add code to <i><b>make sure</b></i> that neither <code>format</code> nor <code>scan</code> support it; an error indicating a bad format sequence should be received in these cases. We might be getting it right now, but we need to be ever so careful as these have been areas which have had security errors in the past in other languages (the ones that just throw it to C's <tt>sprintf</tt>/<tt>sscanf</tt>). Much better safe than sorry.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "dkf"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dkf"
  13. subsystem changed to: "10. Objects"
  14. title changed to: "Need test to ensure %p is not exposed to scripts"
  15. type changed to: "Bug"