Tcl_DStrings lack length overflow protections
Open2613599fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-02-18 18:50:15
see summary
dgpplain2009-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.
Log in (anonymous is fine) to add a comment.