Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f190a7168347385030543e97cd56a4e0db82d9e3
Ticket: 2562113fffffffffffffffffffffffffffffffff
strlen() audit
User & Date: dgp on 2009-02-03 21:20:19
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "None"
  11. title changed to: "strlen() audit"
  12. type changed to: "Bug"