Skip to content
Tcl Source Code History Of Ticket 2562113fffffffff
Login

History Of Ticket 2562113fffffffff

Artifacts Associated With Ticket 2562113fffffffff

  1. Ticket change [f190a71683] (rid 109383) by dgp on 2009-02-03 21:20:19:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      dgphmmm... these days strlen() returns a size_t, doesn't it?
      gpsyes
      dgpso everywhere we have
      dgpint numBytes = strlen(bytes);
      dgpwe've got the potential for a value Tcl can't handle
      
      ƎƎisn't size_t supposed to be a large unsigned type? (or am I misremembering?)
      dgpAIUI, size_t is an unsigned integral type....
      dgp...with enough range to hold the size of anything held in memory.
      jenglishdgp - yes, but that's still safe as long as bytes == objPtr->bytes or something else that came from ckalloc().
      ƎƎyeah. typically equivalent to unsigned long long, I think. (but not guaranteed)
      dgpah, jenglish, thanks;  that should help quite a bit
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "None"
    11. title initialized to: "strlen() audit"
    12. type initialized to: "Bug"
  2. Ticket change [2cdff70149] (rid 118986) by dgp on 2009-08-25 04:06:59:

    1. icomment:
      
      didn't completely do this, but a quick skim
      indicates the existing cases are 1) known short
      strings; 2) things pulled from objPtr->bytes known
      safe; and 3) things that trace back to a (char *)
      argument passed into Tcl that we can blame on
      the caller.
      
      Closing this as a general bug.  Specific cases
      that need more stringent checking can be raised in
      a new report.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [3b51586685] (rid 112718) by dgp on 2009-08-25 04:07:00:

    1. closedate changed to: "2009-08-24T21:07:00"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Rejected"
    7. status changed to: "Closed"
    8. username: "dgp"