Overview
| Artifact ID: | dda8338b54ea6c3ead2e13c93feeb6442f5c0ca7 |
|---|---|
| Ticket: | 3309871fffffffffffffffffffffffffffffffff
Valgrind finds: invalid read in TclMaxListLength() |
| User & Date: | dgp on 2011-06-01 21:02:49 |
Changes
- icomment:
I think we're all in violent agreement now. I looked into making a test case. All that should be needed to demo the former bug is to pass any string with trailing whitespace to Tcl_SplitList(). A few difficulties with that. First, even when we take the buggy path, unless we have a watchdog like valgrind keeping an eye on things, we won't necessarily get a failure reading past the buffer. Second, we don't currently have any test command devoted to testing Tcl_SplitList(). There are some Tcl commands (and more Tk commands) that use Tcl_SplitList(), but none that I would recommend continue to do so for any reason other than inertia. All the calls I examined would be better off converted to using various Tcl_ListObj*() calls instead. Don't want to build a test on a transient implementation detail. So the clear path to making a test would be to create a testing command for Tcl_SplitList(), but that's too much effort (or I'm too lazy) to bother for this. I'm sure I'll regret that later.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"