Artifacts Associated With Ticket 2562113
Ticket change [f190a71683] (rid 109383) by dgp on 2009-02-03 21:20:19:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "None"
- title initialized to: "strlen() audit"
- type initialized to: "Bug"
Ticket change [2cdff70149] (rid 118986) by dgp on 2009-08-25 04:06:59:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [3b51586685] (rid 112718) by dgp on 2009-08-25 04:07:00:
- closedate changed to: "2009-08-24T21:07:00"
- closer changed to: "dgp"
- icomment:
allow_comments - 1
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- username: "dgp"