Tcl Source Code

View Ticket
Login
Ticket UUID: 2613599
Title: Tcl_DStrings lack length overflow protections
Type: Bug Created on: 2009-02-18 18:50:15
Submitter: dgp Assigned to: dgp
Subsystem: 10. Objects Severity:
Priority: 5 Medium Last modified: 2009-04-04 02:06:38
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.5.6
Description:
see summary
User Comments:
dgp added on 2009-04-04 02:06:38:
An undocumented feature of
Tcl_DStringSetLength() is to truncate
all negative length requests as if
they were zero length requests.
Seems mildly dangerous to change
that behavior for sake of those callers
which might have come to rely on it.

Documentation should continue (and
perhaps more clearly) to demand
non-negative length arguments for
the supported interface.