Ticket #11827 (closed defect: fixed)
Tcl_AppendResult not NULL-terminated in fs-traverse.c
|Reported by:||sfiera@…||Owned by:||eridius@…|
|Keywords:||fs-traverse Tcl_AppendResult||Cc:||eridius@…, sfiera@…|
I was just trying to traverse a list of directories using fs-traverse. I have since realized that fs-traverse will not handle a list of directories. However, rather than failing gracefully and reporting that the requested directory didn't exist, it was crashing with a bus error. I traced this problem back to the invocations of Tcl_AppendResult in fs-traverse.c, which are used to report errors.
According to its manpage, Tcl_AppendResult takes a NULL-terminated list of strings. The invocations in fs-traverse.c didn't do this. I've patched it; however, although fs-traverse doesn't have a "maintainer," I'll defer to Eridius on committing it since it's his creation.
- Status changed from new to closed
- Resolution set to fixed
- Priority changed from Important to High
- Cc changed from firstname.lastname@example.org,email@example.com to firstname.lastname@example.org, email@example.com