Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f550e8ca21237b0bb8c9247be24241742d4d7387b9dac4f5c8e81a390cf9a157
Ticket: 767e070d35e89c53c88f7f4d01c30249ea82466f
Tcl_GetRange and Tcl_GetUniChar do not validate index inputs
User & Date: dgp on 2020-03-13 16:44:42
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Documentation says nothing about it, but the comments in the code note:
    
    "The index is assumed to be in the appropriate range."
    
    "The first and last indices are assumed to be in the appropriate range."
    
    This is a burden on the caller that should at least be documented.
    
    Arguably worse, since the check is not done, the operations of the routines
    are then free to access unrestrained memory, which seems a risk at least.
    
  5. foundin changed to: "all"
  6. is_private changed to: "0"
  7. login: "dgp"
  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: "dgp"
  13. subsystem changed to: "10. Objects"
  14. title changed to:
    Tcl_GetRange and Tcl_GetUniChar do not validate index inputs
    
  15. type changed to: "Bug"